mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Small fixes
This commit is contained in:
parent
94c97bc87a
commit
b63ff682fd
@ -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) {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user