mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 02:40:29 +01:00
simplified a statement
This commit is contained in:
parent
d8ec3f8bbe
commit
55caa109c9
@ -73,8 +73,5 @@ def_on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function has_locked_chest_privilege(meta, player)
|
function has_locked_chest_privilege(meta, player)
|
||||||
if player:get_player_name() ~= meta:get_string("owner") then
|
return player:get_player_name() == meta:get_string("owner")
|
||||||
return false
|
|
||||||
end
|
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user