Tweak inventory image of internal comparator items

This commit is contained in:
Wuzzy 2018-10-24 18:22:48 +02:00
parent b5f9a755b3
commit 4703ca9ae6

View file

@ -287,9 +287,11 @@ for _, state in pairs{mesecon.state.on, mesecon.state.off} do
local extra_desc = {}
if mode == "sub" then
table.insert(extra_desc, "Subtract")
nodedef.inventory_image = nil
end
if state == mesecon.state.on then
table.insert(extra_desc, "Powered")
nodedef.inventory_image = nil
end
nodedef.description = nodedef.description..
" ("..table.concat(extra_desc, ", ")..")"