Fixed intermittent console spam when breaking a cloaking core

This commit is contained in:
Unknown 2019-11-11 01:29:56 +01:00 committed by unknown
parent 6849e22eda
commit 444e619f91

View file

@ -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);