Fixed intermittent console spam when breaking a cloaking core
This commit is contained in:
parent
6849e22eda
commit
444e619f91
1 changed files with 5 additions and 1 deletions
|
@ -340,8 +340,12 @@ public class TileEntityCloakingCore extends TileEntityAbstractEnergyCoreOrContro
|
|||
}
|
||||
|
||||
private void updateCoils(final boolean isConnected, final boolean isActive) {
|
||||
// update core, only if it's still present/connected
|
||||
if (isConnected) {
|
||||
updateBlockState(null, BlockProperties.ACTIVE, isActive);
|
||||
}
|
||||
|
||||
// update coils
|
||||
for (final EnumFacing direction : EnumFacing.VALUES) {
|
||||
if (isValidInnerCoils[direction.ordinal()]) {
|
||||
updateCoil(isConnected, isActive, direction, DISTANCE_INNER_COILS_BLOCKS);
|
||||
|
|
Loading…
Reference in a new issue