[0.15.10] Modded fluid with layered icons can't be barreled
Posted: Tue May 16, 2017 1:48 am
If a mod adds a fluid with the icons property instead of icon:
The fluid won't get barreling recipes/item generated due to:
Probably fairly low priority, I'm not really bothered by it myself but I expect someone will eventually try to make some fluids using tinted icons and go crazy trying to figure out why they can't be barreled 
Related: viewtopic.php?f=34&t=47676
Code: Select all
{
type = "fluid",
name = "water-test",
default_temperature = 15,
max_temperature = 100,
heat_capacity = "0.2KJ",
base_color = {r=0, g=0.34, b=0.6},
flow_color = {r=0.7, g=0.7, b=0.7},
icons = {{icon = "__base__/graphics/icons/fluid/water.png"}},
order = "a[fluid]-a[water]",
pressure_to_speed_ratio = 0.4,
flow_to_energy_ratio = 0.59
},
Code: Select all
if (fluid.auto_barrel == nil or fluid.auto_barrel) and fluid.icon then

Related: viewtopic.php?f=34&t=47676