summaryrefslogtreecommitdiff
path: root/bucket.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 /bucket.lua
parent81a12e3d38c83eacfce4a3eeaec14724dcdb4c8f (diff)
swap parameters for all calls to can_interact
Diffstat (limited to 'bucket.lua')
-rw-r--r--bucket.lua6
1 files changed, 3 insertions, 3 deletions
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))