Fixed client side console spam with capacitors
This commit is contained in:
parent
6b2906d5a7
commit
dc0d3dd2b8
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue