mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 15:00:48 +00:00
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:
parent
af34fb730f
commit
6be023015f
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user