add missing local var
This commit is contained in:
parent
e24812a834
commit
9655c0964c
3
init.lua
3
init.lua
@ -177,6 +177,7 @@ core.register_entity(":__builtin:item", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local name1 = stack:get_meta():get_string("description")
|
local name1 = stack:get_meta():get_string("description")
|
||||||
|
local name
|
||||||
|
|
||||||
if name1 == "" then
|
if name1 == "" then
|
||||||
name = core.registered_items[itemname].description
|
name = core.registered_items[itemname].description
|
||||||
@ -194,7 +195,7 @@ core.register_entity(":__builtin:item", {
|
|||||||
automatic_rotate = 0.314 / size,
|
automatic_rotate = 0.314 / size,
|
||||||
wield_item = self.itemstring,
|
wield_item = self.itemstring,
|
||||||
glow = glow,
|
glow = glow,
|
||||||
infotext = name..c1.."\n("..itemname..c2..")"
|
infotext = name .. c1 .. "\n(" .. itemname .. c2 .. ")"
|
||||||
})
|
})
|
||||||
|
|
||||||
end,
|
end,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user