fixed unneccesary global unlock checking

This commit is contained in:
kaadmy 2015-10-02 09:20:11 -07:00
parent e403cb56f5
commit 29e9447731

View File

@ -12,7 +12,7 @@ function locks.is_owner(meta, player)
local name = player:get_player_name()
local owner = meta:get_string("lock_owner")
return (all_unlocked or (name == owner))
return name == owner
end
function locks.is_locked(meta, player)