mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
part 1
This commit is contained in:
parent
f8e6a60d0f
commit
851d70d3de
@ -62,7 +62,7 @@ public class PileNeutronHandler {
|
||||
TileEntityPileBase originTE = (TileEntityPileBase) origin.tile;
|
||||
BlockPos pos = new BlockPos(originTE);
|
||||
|
||||
for(float i = 1; i <= range; i += 0.5F) {
|
||||
for(float i = 1; i <= range; i += 1F) {
|
||||
|
||||
BlockPos node = new BlockPos(
|
||||
(int)Math.floor(pos.getX() + 0.5 + vector.xCoord * i),
|
||||
@ -70,6 +70,9 @@ public class PileNeutronHandler {
|
||||
(int)Math.floor(pos.getZ() + 0.5 + vector.zCoord * i)
|
||||
);
|
||||
|
||||
if(node.equals(pos))
|
||||
continue; // don't interact with itself!
|
||||
|
||||
TileEntity tile;
|
||||
|
||||
if (NeutronNodeWorld.nodeCache.containsKey(node))
|
||||
@ -77,7 +80,7 @@ public class PileNeutronHandler {
|
||||
else {
|
||||
tile = blockPosToTE(worldObj, node);
|
||||
if (tile == null)
|
||||
return; // Doesn't exist anymore!
|
||||
return; // Doesn't exist!
|
||||
if (tile instanceof TileEntityPileBase)
|
||||
NeutronNodeWorld.addNode(new PileNeutronNode((TileEntityPileBase) tile));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user