mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fucky wucky (kms)
This commit is contained in:
parent
9d2aa86e41
commit
9d3a3b1fff
@ -64,7 +64,7 @@ public class NeutronHandler {
|
||||
RBMKNeutronHandler.RBMKNeutronNode node = (RBMKNeutronHandler.RBMKNeutronNode) cachedNode;
|
||||
toRemove.addAll(node.checkNode());
|
||||
}
|
||||
/*
|
||||
/* TODO: actually do this and uncache pile nodes
|
||||
if (cachedNode.type == NeutronStream.NeutronType.PILE) {
|
||||
PileNeutronNode node = (PileNeutronNode) cachedNode;
|
||||
toRemove.addAll(node.checkNode());
|
||||
|
||||
@ -268,9 +268,9 @@ public class RBMKNeutronHandler {
|
||||
if (fluxQuantity == 0D) // Whoops, used it all up!
|
||||
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??
|
||||
if (te instanceof TileEntityRBMKBase) {
|
||||
node = makeNode((TileEntityRBMKBase) te);
|
||||
@ -290,6 +290,8 @@ public class RBMKNeutronHandler {
|
||||
}
|
||||
}
|
||||
|
||||
node = (RBMKNeutronNode) NeutronNodeWorld.nodeCache.get(nodePos);
|
||||
|
||||
RBMKType type = (RBMKType) node.data.get("type");
|
||||
|
||||
if (type == RBMKType.OTHER) // pass right on by!
|
||||
|
||||
@ -133,7 +133,8 @@ public class RBMKDials {
|
||||
if(isIteration)
|
||||
throw new NullPointerException("Cannot find gamerule for dial " + rule.keyString + " after creation.");
|
||||
else {
|
||||
createDials(world, true); // fuck
|
||||
world.getGameRules().setOrCreateGameRule(rule.keyString, rule.defValue.toString()); // fuck
|
||||
refresh(world);
|
||||
return getGameRule(world, rule, true);
|
||||
}
|
||||
} else if(rulesList.size() > 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user