From 7de6860654af772bd2c41b9c97edd295a157d194 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Wed, 25 Mar 2015 23:42:26 +0100 Subject: [PATCH] Checked one more field before indexing it in infotools --- minetestforfun_game/mods/default/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minetestforfun_game/mods/default/commands.lua b/minetestforfun_game/mods/default/commands.lua index 9bf5fc09..283924ef 100644 --- a/minetestforfun_game/mods/default/commands.lua +++ b/minetestforfun_game/mods/default/commands.lua @@ -10,7 +10,7 @@ minetest.register_craftitem("default:infotool", { on_use = function(_, user, pt) if pt.type ~= "node" then return end local nn = minetest.get_node(pt.under).name - if minetest.registered_items[nn] == nil or type(minetest.registered_items[nn].tiles[1]) ~= "string" then return end + if minetest.registered_items[nn] == nil or minetest.registerred_items[nn].tiles == nil or type(minetest.registered_items[nn].tiles[1]) ~= "string" then return end local def = minetest.registered_nodes[nn] if not def then return end