diff options
author | BremaWeb <brandon@bremaweb.com> | 2013-11-30 19:45:43 -0600 |
---|---|---|
committer | BremaWeb <brandon@bremaweb.com> | 2013-11-30 19:45:43 -0600 |
commit | bf2f311f21a4a7fd24148aa57f415d2ad6d67562 (patch) | |
tree | 151902ae06ff0cbed9065d669220e2f143be1ed4 /chest.lua | |
parent | 81a12e3d38c83eacfce4a3eeaec14724dcdb4c8f (diff) |
swap parameters for all calls to can_interact
Diffstat (limited to 'chest.lua')
-rw-r--r-- | chest.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -24,7 +24,7 @@ minetest.register_node("landrush:shared_chest", { allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) local meta = minetest.get_meta(pos) - if not landrush.can_interact(player:get_player_name(),pos) then + if not landrush.can_interact(pos,player:get_player_name()) then minetest.log("action", player:get_player_name() .. " tried to access a shared chest at ".. minetest.pos_to_string(pos)) return 0 end @@ -33,7 +33,7 @@ minetest.register_node("landrush:shared_chest", { allow_metadata_inventory_put = function(pos, listname, index, stack, player) local meta = minetest.get_meta(pos) - if not landrush.can_interact(player:get_player_name(),pos) then + if not landrush.can_interact(pos,player:get_player_name()) then minetest.log("action", player:get_player_name() .. " tried to access a shared chest at ".. minetest.pos_to_string(pos)) return 0 end @@ -42,7 +42,7 @@ minetest.register_node("landrush:shared_chest", { allow_metadata_inventory_take = function(pos, listname, index, stack, player) local meta = minetest.get_meta(pos) - if not landrush.can_interact(player:get_player_name(),pos) then + if not landrush.can_interact(pos,player:get_player_name()) then minetest.log("action", player:get_player_name().. " tried to access a shared chest at ".. minetest.pos_to_string(pos)) |