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
|
@Override
|
||||||
public void onNeighborBlockChange(World world, int x, int y, int z, Block neighbor) {
|
public void onNeighborBlockChange(World world, int x, int y, int z, Block neighbor) {
|
||||||
|
super.onNeighborBlockChange(world, x, y, z, neighbor);
|
||||||
if (world.isRemote) return;
|
if (world.isRemote) return;
|
||||||
int[] core = this.findCore(world, x, y, z);
|
int[] core = this.findCore(world, x, y, z);
|
||||||
if (core == null) return;
|
if (core == null) return;
|
||||||
|
|||||||
@ -87,10 +87,10 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IC
|
|||||||
water = new FluidTank(Fluids.WATER, 32000);
|
water = new FluidTank(Fluids.WATER, 32000);
|
||||||
}
|
}
|
||||||
public void setRedstonePowered(boolean powered) {
|
public void setRedstonePowered(boolean powered) {
|
||||||
this.redstonePowered = powered;
|
if (!powered && this.redstonePowered) {
|
||||||
if (!powered) {
|
|
||||||
isOn = false;
|
isOn = false;
|
||||||
}
|
}
|
||||||
|
this.redstonePowered = powered;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user