clicker:setpos(pos)
end)
elseif not self.driver then
+ local attach = clicker:get_attach()
+ if attach and attach:get_luaentity() then
+ local luaentity = attach:get_luaentity()
+ if luaentity.driver then
+ luaentity.driver = nil
+ end
+ clicker:set_detach()
+ end
self.driver = clicker
clicker:set_attach(self.object, "",
{x = 0, y = 11, z = -3}, {x = 0, y = 0, z = 0})
end
-function boat.on_punch(self, puncher, time_from_last_punch,
- tool_capabilities, direction)
+function boat.on_punch(self, puncher)
if not puncher or not puncher:is_player() or self.removed then
return
end