Fixed issue: reactor shutting down if not redstone powered and on by GUI in case of block update nearby.

Fixed issue: zirnox multiblock not breaking entirely if mined.
This commit is contained in:
Hacker6329 2026-02-23 18:31:28 +01:00
parent af34fb730f
commit 6be023015f
2 changed files with 3 additions and 2 deletions

View File

@ -90,6 +90,7 @@ public class ReactorZirnox extends BlockDummyable {
@Override
public void onNeighborBlockChange(World world, int x, int y, int z, Block neighbor) {
super.onNeighborBlockChange(world, x, y, z, neighbor);
if (world.isRemote) return;
int[] core = this.findCore(world, x, y, z);
if (core == null) return;

View File

@ -87,10 +87,10 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IC
water = new FluidTank(Fluids.WATER, 32000);
}
public void setRedstonePowered(boolean powered) {
this.redstonePowered = powered;
if (!powered) {
if (!powered && this.redstonePowered) {
isOn = false;
}
this.redstonePowered = powered;
}
@Override