Index: liquid.lua ================================================================== --- liquid.lua +++ liquid.lua @@ -107,17 +107,17 @@ if liq then top = top:blit( L.image('sorcery_node_liquid.png'):multiply(L.color(liq.color)) ) else top=top:blit( L.image('sorcery_trough_bottom.png') ) end - local ttlc = function(liq) return + local ttlc = function(liq,i) return liq and string.format('%s Trough', L.str.capitalize(liq.name)), liq and string.format('%s of %s', liq.measure(i * Q), liq.name) end - local trough_title, trough_content = ttlc(liq) + local trough_title, trough_content = ttlc(liq,i) local function trough_caption(pos,i,l) - local trough_title, trough_content = ttlc(l or liq) + local trough_title, trough_content = ttlc(l or liq,i) minetest.get_meta(pos):set_string('infotext', i > 0 and string.format( '%s\n(%s)', trough_title, trough_content ) or 'Empty Trough') end sorcery.register.residue.link(lid(i),lid(0))