Fixed client side console spam with capacitors

This commit is contained in:
Unknown 2019-09-27 11:13:16 +02:00 committed by unknown
parent 6b2906d5a7
commit dc0d3dd2b8

View file

@ -166,7 +166,10 @@ public class TileEntityCapacitor extends TileEntityAbstractEnergy {
isUpdated |= modeSide[enumFacing.ordinal()] != EnumDisabledInputOutput.get(bytes[enumFacing.ordinal()]);
modeSide[enumFacing.ordinal()] = EnumDisabledInputOutput.get(bytes[enumFacing.ordinal()]);
}
if (isUpdated) {
// refresh client side rendering has needed
if ( isUpdated
&& hasWorld()
&& world.isRemote ) {
world.markBlockRangeForRenderUpdate(pos, pos);
}
}