From 4f32fd253ca53d6942c4231499cc247f89af4d49 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Sun, 27 Nov 2016 14:05:28 -0800 Subject: [PATCH] Fix ItemStack method call for keys. Fixes (I hope) #1420 (bad method call). --- mods/default/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 6e391e63..a81f4ed7 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1630,7 +1630,7 @@ local function has_locked_chest_privilege(meta, player) -- is player wielding the right key? local item = player:get_wielded_item() if item:get_name() == "default:key" then - local key_meta = minetest.parse_json(item.get_metadata()) + local key_meta = minetest.parse_json(item:get_metadata()) local secret = meta:get_string("key_lock_secret") if secret ~= key_meta.secret then return false