From ac81021ddf91167abc1f8407bb7d20e60806a801 Mon Sep 17 00:00:00 2001 From: BallOfEnergy <66693744+ballofenergy1@users.noreply.github.com> Date: Sat, 8 Mar 2025 17:34:08 -0600 Subject: [PATCH] small fix --- .../java/com/hbm/handler/neutron/RBMKNeutronHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/hbm/handler/neutron/RBMKNeutronHandler.java b/src/main/java/com/hbm/handler/neutron/RBMKNeutronHandler.java index dfe595599..fadaea505 100644 --- a/src/main/java/com/hbm/handler/neutron/RBMKNeutronHandler.java +++ b/src/main/java/com/hbm/handler/neutron/RBMKNeutronHandler.java @@ -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... }