1
0
Fork 0

Tweak inventory image of internal comparator items

objects
Wuzzy 2018-10-24 18:22:48 +02:00
parent b5f9a755b3
commit 4703ca9ae6
1 changed files with 2 additions and 0 deletions

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, ", ")..")"