0
0
Fork 0

Drop boat on ground after punch

This commit is contained in:
Wuzzy 2017-06-12 23:58:32 +02:00
parent 1a6a9ecf0f
commit 9e1d9abce9
1 changed files with 1 additions and 2 deletions

View File

@ -120,10 +120,9 @@ function boat.on_punch(self, puncher)
end
if not self.driver then
self.removed = true
local inv = puncher:get_inventory()
-- Drop boat as item on the ground after punching
if not minetest.setting_getbool("creative_mode") then
minetest.add_item(self.object:getpos(), leftover)
minetest.add_item(self.object:getpos(), self._itemstring)
end
self.object:remove()
end