projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0196c47
)
Fix ItemStack method call for keys.
author
Auke Kok
<sofar@foo-projects.org>
Sun, 27 Nov 2016 22:05:28 +0000
(14:05 -0800)
committer
Auke Kok
<sofar+github@foo-projects.org>
Mon, 28 Nov 2016 02:26:31 +0000
(18:26 -0800)
Fixes (I hope) #1420 (bad method call).
mods/default/nodes.lua
patch
|
blob
|
history
diff --git
a/mods/default/nodes.lua
b/mods/default/nodes.lua
index 6e391e63400aeac0564181d82d94308065d95d8d..a81f4ed79b9872c3cbec68ea2a04070586a2469f 100644
(file)
--- 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