mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 20:55:10 +00:00
Drop boat on ground after punch
This commit is contained in:
parent
1a6a9ecf0f
commit
9e1d9abce9
1 changed files with 1 additions and 2 deletions
|
@ -120,10 +120,9 @@ function boat.on_punch(self, puncher)
|
||||||
end
|
end
|
||||||
if not self.driver then
|
if not self.driver then
|
||||||
self.removed = true
|
self.removed = true
|
||||||
local inv = puncher:get_inventory()
|
|
||||||
-- Drop boat as item on the ground after punching
|
-- Drop boat as item on the ground after punching
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
minetest.add_item(self.object:getpos(), leftover)
|
minetest.add_item(self.object:getpos(), self._itemstring)
|
||||||
end
|
end
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue