diff options
author | Brandon <brandon@bremaweb.com> | 2013-08-08 23:16:09 -0500 |
---|---|---|
committer | Brandon <brandon@bremaweb.com> | 2013-08-08 23:16:09 -0500 |
commit | 5ec5f39b5dbe328e8ba02f8bfea83d517b4e9d38 (patch) | |
tree | 084066f2d7709ff91b2991fcafa0ac8d855c1dbc | |
parent | 565b5a4d3b7d08fa9298b4dbbe8874df0b281729 (diff) |
allow doors to be opened when not wielding an item
-rw-r--r-- | init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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") |