diff --git a/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java b/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java index c034c85f..50b7586e 100644 --- a/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java +++ b/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java @@ -174,6 +174,11 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I return super.rotateBlock(world, blockPos, axis); } + // Triggers on server side when placing a comparator compatible block + // May trigger twice for the same placement action (placing a vanilla chest) + // Triggers on server side when removing a comparator compatible block + // Triggers on both sides when removing a TileEntity + // (by extension, it'll trigger twice for the same removal of a TileEntity with comparator output) @Override public void onNeighborChange(final IBlockAccess blockAccess, final BlockPos blockPos, final BlockPos blockPosNeighbor) { super.onNeighborChange(blockAccess, blockPos, blockPosNeighbor); diff --git a/src/main/java/cr0s/warpdrive/block/energy/BlockEnanReactorCore.java b/src/main/java/cr0s/warpdrive/block/energy/BlockEnanReactorCore.java index 27107c48..6971d6a5 100644 --- a/src/main/java/cr0s/warpdrive/block/energy/BlockEnanReactorCore.java +++ b/src/main/java/cr0s/warpdrive/block/energy/BlockEnanReactorCore.java @@ -57,7 +57,7 @@ public class BlockEnanReactorCore extends BlockAbstractContainer { } @Override - public void breakBlock(World world, @Nonnull BlockPos blockPos, @Nonnull IBlockState blockState) { + public void breakBlock(final World world, @Nonnull final BlockPos blockPos, @Nonnull final IBlockState blockState) { super.breakBlock(world, blockPos, blockState); for (final EnumReactorFace reactorFace : EnumReactorFace.getLasers(enumTier)) { diff --git a/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java b/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java index 9aa8f073..537d39bf 100644 --- a/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java +++ b/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterBeacon.java @@ -134,7 +134,7 @@ public class TileEntityTransporterBeacon extends TileEntityAbstractEnergyConsume // Common OC/CC methods @Override - public void setIsEnabled(boolean isEnabled) { + public void setIsEnabled(final boolean isEnabled) { super.setIsEnabled(isEnabled); // enabling up => redeploy if (isEnabled) { diff --git a/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterCore.java b/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterCore.java index 9b74ad1d..1247db45 100644 --- a/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterCore.java +++ b/src/main/java/cr0s/warpdrive/block/movement/TileEntityTransporterCore.java @@ -1566,7 +1566,7 @@ public class TileEntityTransporterCore extends TileEntityAbstractEnergyConsumer } @Override - public void setIsEnabled(boolean isEnabled) { + public void setIsEnabled(final boolean isEnabled) { super.setIsEnabled(isEnabled); if (isEnabled) { markDirty();