summaryrefslogtreecommitdiff
path: root/technic_chests/chest_commons.lua
diff options
context:
space:
mode:
authorJonathan Raphael Joachim Kolberg <bulldog98@freenet.de>2013-07-24 14:59:05 +0200
committerhdastwb <hdastwb@hdastwb.heliohost.org>2013-07-26 12:44:27 -0400
commit55caa109c95f9dfbca29411fa8e354b0fd1cdbbb (patch)
tree1fda968bd224b8e98c0b040516e40cefeb045926 /technic_chests/chest_commons.lua
parentd8ec3f8bbee5c3c489e4c5740fc8c84449eb86c3 (diff)
simplified a statement
Diffstat (limited to 'technic_chests/chest_commons.lua')
-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