small fix

This commit is contained in:
BallOfEnergy 2025-03-08 17:34:08 -06:00
parent c6ca31eb23
commit ac81021ddf

View File

@ -380,11 +380,11 @@ public class RBMKNeutronHandler {
// 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)) {
if(NeutronNodeWorld.getNode(worldObj, pos) == null) {
TileEntity te = blockPosToTE(worldObj, posAfter);
if (te instanceof TileEntityRBMKBase) {
RBMKNeutronNode node = makeNode((TileEntityRBMKBase) te);
NeutronNodeWorld.addNode(node);
RBMKNeutronNode nodeAfter = makeNode(NeutronNodeWorld.getOrAddWorld(worldObj), (TileEntityRBMKBase) te);
NeutronNodeWorld.getOrAddWorld(worldObj).addNode(nodeAfter);
} else {
irradiateFromFlux(posAfter); // I'm so mad about this...
}