Set densityDir in BlockFluidBase's constructor, closes #737

This commit is contained in:
Lex Manos 2013-09-30 14:02:23 -07:00
parent 81efd38fee
commit 71ececdbb4

View file

@ -58,6 +58,7 @@ public abstract class BlockFluidBase extends Block implements IFluidBlock
this.temperature = fluid.temperature;
this.maxScaledLight = fluid.luminosity;
this.tickRate = fluid.viscosity / 200;
this.densityDir = fluid.density > 0 ? -1 : 1;
fluid.setBlockID(id);
displacementIds.putAll(defaultDisplacementIds);