summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2013-08-08 23:16:09 -0500
committerBrandon <brandon@bremaweb.com>2013-08-08 23:16:09 -0500
commit5ec5f39b5dbe328e8ba02f8bfea83d517b4e9d38 (patch)
tree084066f2d7709ff91b2991fcafa0ac8d855c1dbc /init.lua
parent565b5a4d3b7d08fa9298b4dbbe8874df0b281729 (diff)
allow doors to be opened when not wielding an item
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files 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")