Small fixes

This commit is contained in:
BallOfEnergy 2024-10-13 15:50:00 -05:00
parent 94c97bc87a
commit b63ff682fd
4 changed files with 23 additions and 31 deletions

View File

@ -11,6 +11,7 @@ public abstract class NeutronNode {
protected NeutronType type; protected NeutronType type;
protected TileEntity tile; protected TileEntity tile;
// like NBT but less fucking CANCER // like NBT but less fucking CANCER
// Holds things like cached RBMK lid values.
protected Map<String, Object> data = new HashMap<>(); protected Map<String, Object> data = new HashMap<>();
public NeutronNode(TileEntity tile, NeutronType type) { public NeutronNode(TileEntity tile, NeutronType type) {

View File

@ -8,7 +8,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
public class NeutronNodeWorld { public class NeutronNodeWorld {
// HashMap of all RBMK nodes and their positions. // HashMap of all neutron nodes and their positions.
protected static HashMap<BlockPos, NeutronNode> nodeCache = new HashMap<>(); protected static HashMap<BlockPos, NeutronNode> nodeCache = new HashMap<>();
public static void addNode(NeutronNode node) { public static void addNode(NeutronNode node) {

View File

@ -143,14 +143,6 @@ public class PileNeutronHandler {
} }
} }
for (Map.Entry<World, NeutronNodeWorld.StreamWorld> world : NeutronNodeWorld.streamWorlds.entrySet()) {
for (NeutronStream stream : world.getValue().streams) {
stream.runStreamInteraction(world.getKey());
}
world.getValue().removeAllStreams();
}
for (Map.Entry<World, NeutronNodeWorld.StreamWorld> world : NeutronNodeWorld.streamWorlds.entrySet()) { for (Map.Entry<World, NeutronNodeWorld.StreamWorld> world : NeutronNodeWorld.streamWorlds.entrySet()) {
for (NeutronStream stream : world.getValue().streams) { for (NeutronStream stream : world.getValue().streams) {

View File

@ -40,7 +40,6 @@ public class TileEntityPileFuel extends TileEntityPileBase implements IPileNeutr
data.setDouble("mY", 0.05); data.setDouble("mY", 0.05);
PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, xCoord + 0.25 + worldObj.rand.nextDouble() * 0.5, yCoord + 1, zCoord + 0.25 + worldObj.rand.nextDouble() * 0.5), PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, xCoord + 0.25 + worldObj.rand.nextDouble() * 0.5, yCoord + 1, zCoord + 0.25 + worldObj.rand.nextDouble() * 0.5),
new TargetPoint(worldObj.provider.dimensionId, xCoord + 0.5, yCoord + 1, zCoord + 0.5, 20)); new TargetPoint(worldObj.provider.dimensionId, xCoord + 0.5, yCoord + 1, zCoord + 0.5, 20));
MainRegistry.proxy.effectNT(data);
} }
if(this.progress >= this.maxProgress) { if(this.progress >= this.maxProgress) {