summaryrefslogtreecommitdiff
path: root/doors.lua
diff options
context:
space:
mode:
authorBremaWeb <brandon@bremaweb.com>2013-11-30 19:45:43 -0600
committerBremaWeb <brandon@bremaweb.com>2013-11-30 19:45:43 -0600
commitbf2f311f21a4a7fd24148aa57f415d2ad6d67562 (patch)
tree151902ae06ff0cbed9065d669220e2f143be1ed4 /doors.lua
parent81a12e3d38c83eacfce4a3eeaec14724dcdb4c8f (diff)
swap parameters for all calls to can_interact
Diffstat (limited to 'doors.lua')
-rw-r--r--doors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/doors.lua b/doors.lua
index 6804797..72662d9 100644
--- a/doors.lua
+++ b/doors.lua
@@ -6,7 +6,7 @@ if minetest.get_modpath("doors") then
local bottom = pointed_thing.above
local top = {x=pointed_thing.above.x, y=pointed_thing.above.y+1, z=pointed_thing.above.z}
local name = placer:get_player_name()
- if landrush.can_interact(name, top) and landrush.can_interact(name, bottom) then
+ if landrush.can_interact(top,name) and landrush.can_interact(bottom, name) then
return on_place(itemstack, placer, pointed_thing)
else
topowner = landrush.get_owner(top)