summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic_chests/chest_commons.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/technic_chests/chest_commons.lua b/technic_chests/chest_commons.lua
index e6438bf..92827ab 100644
--- a/technic_chests/chest_commons.lua
+++ b/technic_chests/chest_commons.lua
@@ -73,8 +73,5 @@ def_on_metadata_inventory_take = function(pos, listname, index, stack, player)
end
function has_locked_chest_privilege(meta, player)
- if player:get_player_name() ~= meta:get_string("owner") then
- return false
- end
- return true
+ return player:get_player_name() == meta:get_string("owner")
end