mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix for main issue #1933.
This commit is contained in:
parent
9fa148c218
commit
e2d64ff376
@ -378,7 +378,19 @@ public class RBMKNeutronHandler {
|
|||||||
TileEntityRBMKControl rod = (TileEntityRBMKControl) lastNode.tile;
|
TileEntityRBMKControl rod = (TileEntityRBMKControl) lastNode.tile;
|
||||||
if (rod.getMult() > 0.0D) {
|
if (rod.getMult() > 0.0D) {
|
||||||
this.fluxQuantity *= rod.getMult();
|
this.fluxQuantity *= rod.getMult();
|
||||||
irradiateFromFlux(new BlockPos(lastNode.tile.xCoord + this.vector.xCoord, lastNode.tile.yCoord, lastNode.tile.zCoord + this.vector.zCoord));
|
BlockPos posAfter = new BlockPos(lastNode.tile.xCoord + this.vector.xCoord, lastNode.tile.yCoord, lastNode.tile.zCoord + this.vector.zCoord);
|
||||||
|
|
||||||
|
// The below code checks if the block after the control rod is actually a block or if it's an RBMK rod.
|
||||||
|
// Resolves GitHub issue #1933.
|
||||||
|
if(!NeutronNodeWorld.nodeCache.containsKey(posAfter)) {
|
||||||
|
TileEntity te = blockPosToTE(worldObj, posAfter);
|
||||||
|
if (te instanceof TileEntityRBMKBase) {
|
||||||
|
RBMKNeutronNode node = makeNode((TileEntityRBMKBase) te);
|
||||||
|
NeutronNodeWorld.addNode(node);
|
||||||
|
} else {
|
||||||
|
irradiateFromFlux(posAfter); // I'm so mad about this...
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -390,7 +402,7 @@ public class RBMKNeutronHandler {
|
|||||||
// holy fucking shit
|
// holy fucking shit
|
||||||
// I have had this one line cause me like tens of problems
|
// I have had this one line cause me like tens of problems
|
||||||
// I FUCKING HATE THIS
|
// I FUCKING HATE THIS
|
||||||
// total count of bugs fixed attributed to this function: 13
|
// total count of bugs fixed attributed to this function: 14
|
||||||
Block block = origin.tile.getWorldObj().getBlock(pos.getX(), pos.getY() + h, pos.getZ());
|
Block block = origin.tile.getWorldObj().getBlock(pos.getX(), pos.getY() + h, pos.getZ());
|
||||||
if (block.isOpaqueCube())
|
if (block.isOpaqueCube())
|
||||||
hits += 1;
|
hits += 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user