1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

[minetestforfun_game] Update

This commit is contained in:
LeMagnesium
2015-10-21 14:06:13 +02:00
parent 95c4665a83
commit 01dea59dd5
8 changed files with 23 additions and 30 deletions

View File

@ -89,7 +89,12 @@ boats.register_boat = function(parameters)
self.object:remove()
end)
if not minetest.setting_getbool("creative_mode") then
puncher:get_inventory():add_item("main", "boats:" .. parameters.name)
local inv = puncher:get_inventory()
if inv:room_for_item("main", "boats:boat") then
inv:add_item("main", "boats:boat")
else
minetest.add_item(self.object:getpos(), "boats:boat")
end
end
end