fucky wucky (kms)

This commit is contained in:
BallOfEnergy 2024-12-26 19:27:31 -06:00
parent 9d2aa86e41
commit 9d3a3b1fff
3 changed files with 7 additions and 4 deletions

View File

@ -64,7 +64,7 @@ public class NeutronHandler {
RBMKNeutronHandler.RBMKNeutronNode node = (RBMKNeutronHandler.RBMKNeutronNode) cachedNode; RBMKNeutronHandler.RBMKNeutronNode node = (RBMKNeutronHandler.RBMKNeutronNode) cachedNode;
toRemove.addAll(node.checkNode()); toRemove.addAll(node.checkNode());
} }
/* /* TODO: actually do this and uncache pile nodes
if (cachedNode.type == NeutronStream.NeutronType.PILE) { if (cachedNode.type == NeutronStream.NeutronType.PILE) {
PileNeutronNode node = (PileNeutronNode) cachedNode; PileNeutronNode node = (PileNeutronNode) cachedNode;
toRemove.addAll(node.checkNode()); toRemove.addAll(node.checkNode());

View File

@ -268,9 +268,9 @@ public class RBMKNeutronHandler {
if (fluxQuantity == 0D) // Whoops, used it all up! if (fluxQuantity == 0D) // Whoops, used it all up!
return; return;
RBMKNeutronNode node = (RBMKNeutronNode) NeutronNodeWorld.nodeCache.get(nodePos); RBMKNeutronNode node;
if (node == null) { if (!NeutronNodeWorld.nodeCache.containsKey(nodePos)) {
TileEntity te = blockPosToTE(worldObj, nodePos); // ok, maybe it didn't get added to the list somehow?? TileEntity te = blockPosToTE(worldObj, nodePos); // ok, maybe it didn't get added to the list somehow??
if (te instanceof TileEntityRBMKBase) { if (te instanceof TileEntityRBMKBase) {
node = makeNode((TileEntityRBMKBase) te); node = makeNode((TileEntityRBMKBase) te);
@ -290,6 +290,8 @@ public class RBMKNeutronHandler {
} }
} }
node = (RBMKNeutronNode) NeutronNodeWorld.nodeCache.get(nodePos);
RBMKType type = (RBMKType) node.data.get("type"); RBMKType type = (RBMKType) node.data.get("type");
if (type == RBMKType.OTHER) // pass right on by! if (type == RBMKType.OTHER) // pass right on by!

View File

@ -133,7 +133,8 @@ public class RBMKDials {
if(isIteration) if(isIteration)
throw new NullPointerException("Cannot find gamerule for dial " + rule.keyString + " after creation."); throw new NullPointerException("Cannot find gamerule for dial " + rule.keyString + " after creation.");
else { else {
createDials(world, true); // fuck world.getGameRules().setOrCreateGameRule(rule.keyString, rule.defValue.toString()); // fuck
refresh(world);
return getGameRule(world, rule, true); return getGameRule(world, rule, true);
} }
} else if(rulesList.size() > 1) } else if(rulesList.size() > 1)