summaryrefslogtreecommitdiff
path: root/shared_door.lua
diff options
context:
space:
mode:
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