1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

Fixed fix fixing infotools

- Corrected typo in registered_items' table's name
This commit is contained in:
LeMagnesium 2015-03-28 17:45:52 +01:00
parent 64a58936dd
commit 5b071b9018

View File

@ -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 minetest.registerred_items[nn].tiles == nil or type(minetest.registered_items[nn].tiles[1]) ~= "string" then return end
if minetest.registered_items[nn] == nil or minetest.registered_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