From 55caa109c95f9dfbca29411fa8e354b0fd1cdbbb Mon Sep 17 00:00:00 2001 From: Jonathan Raphael Joachim Kolberg Date: Wed, 24 Jul 2013 14:59:05 +0200 Subject: [PATCH] simplified a statement --- technic_chests/chest_commons.lua | 5 +---- 1 file changed, 1 insertion(+), 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 -- 2.30.2