actually got the bug this time

This commit is contained in:
Alastors committed 2023-12-06 01:53:56 -05:00
1 parent 0d97d836a3
commit baf9f915e5
1 file changed
+13 -1
@@ -45,7 +45,7 @@ public class NodeHelper {
Collections.shuffle(tileEntities);
for (TileEntity entity : tileEntities) {
if (ThaumicHorizonsHelper.isActive() && entity instanceof TileSyntheticNode) {
return null;
continue;
}
if (entity instanceof INode) {
Vec3 tePos = Vec3.createVectorHelper(entity.xCoord, entity.yCoord, entity.zCoord);
@@ -67,6 +67,9 @@ public class NodeHelper {
List<TileEntity> tileEntities = new ArrayList<TileEntity>(
((Map<ChunkPosition, TileEntity>) chunk.chunkTileEntityMap).values());
for (TileEntity entity : tileEntities) {
if (ThaumicHorizonsHelper.isActive() && entity instanceof TileSyntheticNode) {
continue;
}
if (entity instanceof INode) {
Vec3 tePos = Vec3.createVectorHelper(entity.xCoord, entity.yCoord, entity.zCoord);
Vec3 result = apiaryPos.subtract(tePos);
@@ -115,6 +118,9 @@ public class NodeHelper {
for (Chunk chunk : chunks) {
for (INode node : findNodesInChunkWithinRange(chunk, xCoord, yCoord, zCoord, range)) {
if (node != null) {
if (ThaumicHorizonsHelper.isActive() && node instanceof TileSyntheticNode) {
continue;
}
++attemptedNodes;
AspectList aspectsBase = node.getAspectsBase();
int randBase = Math.max(aspectsBase.visSize(), 1);
@@ -180,6 +186,9 @@ public class NodeHelper {
for (Chunk chunk : chunks) {
INode node = findNode(chunk, xCoord, yCoord, zCoord, range);
if (node != null) {
if (ThaumicHorizonsHelper.isActive() && node instanceof TileSyntheticNode) {
continue;
}
boolean nodeChanged = false;
if (node.getNodeType() == NodeType.UNSTABLE) {
node.setNodeType(NodeType.NORMAL);
@@ -226,6 +235,9 @@ public class NodeHelper {
boolean nodeChanged = false;
for (Chunk chunk : chunks) {
for (INode node : findNodesInChunkWithinRange(chunk, xCoord, yCoord, zCoord, range)) {
if (ThaumicHorizonsHelper.isActive() && node instanceof TileSyntheticNode) {
continue;
}
++attemptedNodes;
NodeType nodeType = node.getNodeType();
if (nodeType != targetType && nodeType != NodeType.NORMAL) {