Fluid Tanks displaying liquids as white (even with their color set)
IceDragon200 opened this issue ยท 4 comments
Hello, one of the developers from Growthcraft here, I'd like to report a bug regarding fluid tanks.
See, we were building against 7.0.9 for awhile, until the "a new version is available" message started nagging me, so I updated to 7.1.13, sadly.
Fluid tanks stopped displaying our fluids correctly.
Due to the number of fluids we have, we used 1 texture (a white one) along with the Fluid#getColor to denote different fluids, sadly after upgrading our fluids are rendered as their base texture without color.
Expected (From 7.0.9)
Actual (Now 7.1.13)
In addition, I've noticed that the tanks use the downcased fluidName (Possibly Fluid#getName()
) instead of unlocalized name (Fluid#getUnlocalizedName()
)
Oh, right! Because the color cache is not updated them.
Comment it out (or, if you want to keep smooth singleplayer rendering, make
it check if the worldObj is not remote and get the color from the fluid
then.)