From 5ec5f39b5dbe328e8ba02f8bfea83d517b4e9d38 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 8 Aug 2013 23:16:09 -0500 Subject: allow doors to be opened when not wielding an item --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index bc80fe8..f950c6e 100644 --- a/init.lua +++ b/init.lua @@ -251,7 +251,8 @@ end function minetest.item_place(itemstack, placer, pointed_thing) owner = landrush.get_owner(pointed_thing.above) player = placer:get_player_name() - if landrush.can_interact(player, pointed_thing.above) then + minetest.log("action",dump(itemstack:get_name())) + if landrush.can_interact(player, pointed_thing.above) or itemstack:get_name() == "" then return landrush.default_place(itemstack, placer, pointed_thing) else if ( owner ~= nil ) then @@ -383,7 +384,7 @@ minetest.after(0, function () dofile(path.."/default.lua") dofile(path.."/bucket.lua") ---dofile(path.."/doors.lua") +dofile(path.."/doors.lua") dofile(path.."/fire.lua") dofile(path.."/chatcommands.lua") -- cgit v1.2.3