summaryrefslogtreecommitdiff
path: root/homedecor/handlers/inventory.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-27 17:03:30 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-27 17:03:30 -0500
commitd223b4f19c0e47e352cbbeb7c723b75e66c10b90 (patch)
treeb23844dcf5d59cc1feda57f76f47591f57176444 /homedecor/handlers/inventory.lua
parent3f7b069dbafe04d677cf0950b3fbc17c0d39f339 (diff)
downloaddreambuilder_modpack-d223b4f19c0e47e352cbbeb7c723b75e66c10b90.tar
dreambuilder_modpack-d223b4f19c0e47e352cbbeb7c723b75e66c10b90.tar.gz
dreambuilder_modpack-d223b4f19c0e47e352cbbeb7c723b75e66c10b90.tar.bz2
dreambuilder_modpack-d223b4f19c0e47e352cbbeb7c723b75e66c10b90.tar.xz
dreambuilder_modpack-d223b4f19c0e47e352cbbeb7c723b75e66c10b90.zip
update homedecor
Diffstat (limited to 'homedecor/handlers/inventory.lua')
-rw-r--r--homedecor/handlers/inventory.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/homedecor/handlers/inventory.lua b/homedecor/handlers/inventory.lua
index 4db9892..62269e6 100644
--- a/homedecor/handlers/inventory.lua
+++ b/homedecor/handlers/inventory.lua
@@ -119,7 +119,7 @@ function homedecor.handle_inventory(name, def, original_def)
local playername = player:get_player_name()
if playername == owner or
- minetest.check_player_privs(player, "protection_bypass") then
+ minetest.check_player_privs(playername, "protection_bypass") then
return allow_move and
allow_move(pos, from_list, from_index, to_list, to_index, count, player) or
count
@@ -138,7 +138,7 @@ function homedecor.handle_inventory(name, def, original_def)
local playername = player:get_player_name()
if playername == owner or
- minetest.check_player_privs(player, "protection_bypass") then
+ minetest.check_player_privs(playername, "protection_bypass") then
return allow_put and allow_put(pos, listname, index, stack, player) or
stack:get_count()
end
@@ -156,7 +156,7 @@ function homedecor.handle_inventory(name, def, original_def)
local playername = player:get_player_name()
if playername == owner or
- minetest.check_player_privs(player, "protection_bypass") then
+ minetest.check_player_privs(playername, "protection_bypass") then
return allow_take and allow_take(pos, listname, index, stack, player) or
stack:get_count()
end