mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Tweak inventory image of internal comparator items
This commit is contained in:
parent
b5f9a755b3
commit
4703ca9ae6
1 changed files with 2 additions and 0 deletions
|
@ -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, ", ")..")"
|
||||
|
|
Loading…
Reference in a new issue