simplified a statement
authorJonathan Raphael Joachim Kolberg <bulldog98@freenet.de>
Wed, 24 Jul 2013 12:59:05 +0000 (14:59 +0200)
committerhdastwb <hdastwb@hdastwb.heliohost.org>
Fri, 26 Jul 2013 16:44:27 +0000 (12:44 -0400)
technic_chests/chest_commons.lua

index e6438bf832c104329287b895414dd5d803e08e9a..92827abd824b725b0d1db7b1f3fca39d00d835ae 100644 (file)
@@ -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