Only use the liquid's method when dealing with the server tile.

This commit is contained in:
iTitus 2015-11-15 13:05:51 +01:00
parent 24e56c79ee
commit 036d84133b

View file

@ -35,8 +35,12 @@ public class RenderTank extends TileEntitySpecialRenderer {
}
// Workaround: The colorRenderCache from the server tile from getServerTile(...) does not get synced properly
// int color = tank.tank.colorRenderCache;
int color = liquid.getFluid().getColor(liquid);
int color;
if(tank.getWorldObj().isRemote) {
color = tank.tank.colorRenderCache;
} else {
color = liquid.getFluid().getColor(liquid);
}
int[] displayList = FluidRenderer.getFluidDisplayLists(liquid, tileentity.getWorldObj(), false);
if (displayList == null) {