Skip to content
Permalink
Browse files

Allow non-players to dig locked chests.

  • Loading branch information
MT-Modder authored and paramat committed Mar 3, 2016
1 parent 0410b5e commit ac843f8fe72bd90a0ee50ab3a9592f1ab271742f
Showing with 5 additions and 1 deletion.
  1. +5 −1 mods/default/nodes.lua
@@ -1410,7 +1410,11 @@ local function get_locked_chest_formspec(pos)
end

local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
local name = ""
if player then
name = player:get_player_name()
end
if name ~= meta:get_string("owner") then
return false
end
return true

0 comments on commit ac843f8

Please sign in to comment.