Only use the liquid's method when dealing with the server tile.
This commit is contained in:
parent
24e56c79ee
commit
036d84133b
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue