Tweak inventory image of internal comparator items
This commit is contained in:
parent
b5f9a755b3
commit
4703ca9ae6
|
@ -287,9 +287,11 @@ for _, state in pairs{mesecon.state.on, mesecon.state.off} do
|
||||||
local extra_desc = {}
|
local extra_desc = {}
|
||||||
if mode == "sub" then
|
if mode == "sub" then
|
||||||
table.insert(extra_desc, "Subtract")
|
table.insert(extra_desc, "Subtract")
|
||||||
|
nodedef.inventory_image = nil
|
||||||
end
|
end
|
||||||
if state == mesecon.state.on then
|
if state == mesecon.state.on then
|
||||||
table.insert(extra_desc, "Powered")
|
table.insert(extra_desc, "Powered")
|
||||||
|
nodedef.inventory_image = nil
|
||||||
end
|
end
|
||||||
nodedef.description = nodedef.description..
|
nodedef.description = nodedef.description..
|
||||||
" ("..table.concat(extra_desc, ", ")..")"
|
" ("..table.concat(extra_desc, ", ")..")"
|
||||||
|
|
Loading…
Reference in New Issue