From bf2f311f21a4a7fd24148aa57f415d2ad6d67562 Mon Sep 17 00:00:00 2001 From: BremaWeb Date: Sat, 30 Nov 2013 19:45:43 -0600 Subject: swap parameters for all calls to can_interact --- bucket.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bucket.lua') diff --git a/bucket.lua b/bucket.lua index 2557a1f..8316838 100644 --- a/bucket.lua +++ b/bucket.lua @@ -14,7 +14,7 @@ if minetest.get_modpath("bucket") then liquiddef = bucket.liquids[n.name] if liquiddef ~= nil and liquiddef.source == n.name and liquiddef.itemname ~= nil then local player = user:get_player_name() - if landrush.can_interact(player, pointed_thing.under) then + if landrush.can_interact(pointed_thing.under, player) then minetest.env:add_node(pointed_thing.under, {name="air"}) return {name=liquiddef.itemname} else @@ -36,13 +36,13 @@ if minetest.get_modpath("bucket") then n = minetest.env:get_node(pointed_thing.under) local player = user:get_player_name() if minetest.registered_nodes[n.name].buildable_to then - if landrush.can_interact(player, pointed_thing.under) then + if landrush.can_interact(pointed_thing.under, player) then return on_use(itemstack, user, pointed_thing) else minetest.chat_send_player(player, "Area owned by "..landrush.get_owner(pointed_thing.above)) end else - if landrush.can_interact(player, pointed_thing.above) then + if landrush.can_interact(pointed_thing.above, player) then return on_use(itemstack, user, pointed_thing) else minetest.chat_send_player(player, "Area owned by "..landrush.get_owner(pointed_thing.above)) -- cgit v1.2.3