summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")