summaryrefslogtreecommitdiff
path: root/shared_door.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 /shared_door.lua
parent81a12e3d38c83eacfce4a3eeaec14724dcdb4c8f (diff)
swap parameters for all calls to can_interact
Diffstat (limited to 'shared_door.lua')
-rw-r--r--shared_door.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared_door.lua b/shared_door.lua
index a876485..ec9f8fb 100644
--- a/shared_door.lua
+++ b/shared_door.lua
@@ -36,13 +36,13 @@ minetest.register_craft({
minetest.registered_nodes['landrush:shared_door_b_1'].on_rightclick = function(pos, node, clicker)
-if ( landrush.can_interact(clicker:get_player_name(),pos) ) then
+if ( landrush.can_interact(pos,clicker:get_player_name()) ) then
landrush.on_rightclick(pos, 1, "landrush:shared_door_t_1", "landrush:shared_door_b_2", "landrush:shared_door_t_2", {1,2,3,0})
end
end
minetest.registered_nodes['landrush:shared_door_t_1'].on_rightclick = function(pos, node, clicker)
-if ( landrush.can_interact(clicker:get_player_name(),pos) ) then
+if ( landrush.can_interact(pos,clicker:get_player_name()) ) then
landrush.on_rightclick(pos, -1, "landrush:shared_door_b_1", "landrush:shared_door_t_2", "landrush:shared_door_b_2", {1,2,3,0})
end
end
@@ -51,13 +51,13 @@ end
-- Bug was caused, because the reverse order of the on_rightclick was not taken into account
minetest.registered_nodes['landrush:shared_door_b_2'].on_rightclick = function(pos, node, clicker)
-if ( landrush.can_interact(clicker:get_player_name(),pos) ) then
+if ( landrush.can_interact(pos,clicker:get_player_name()) ) then
landrush.on_rightclick(pos, 1, "landrush:shared_door_t_2", "landrush:shared_door_b_1", "landrush:shared_door_t_1", {3,0,1,2})
end
end
minetest.registered_nodes['landrush:shared_door_t_2'].on_rightclick = function(pos, node, clicker)
-if ( landrush.can_interact(clicker:get_player_name(),pos) ) then
+if ( landrush.can_interact(pos,clicker:get_player_name()) ) then
landrush.on_rightclick(pos, -1, "landrush:shared_door_b_2", "landrush:shared_door_t_1", "landrush:shared_door_b_1", {3,0,1,2})
end
end