fix: core not being relocated when over simulation distance

This commit is contained in:
ChomeNS
2025-03-31 14:27:50 +07:00
parent 2196e822d5
commit 6c98da4184
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
2300
2301

View File

@@ -415,8 +415,8 @@ public class CorePlugin
// only relocate the core when it really needs to
if (
from == null || to == null ||
Math.abs(botChunkPosX - coreChunkPosX) > bot.world.simulationDistance ||
Math.abs(botChunkPosZ - coreChunkPosZ) > bot.world.simulationDistance
Math.abs(botChunkPosX - coreChunkPosX) >= bot.world.simulationDistance ||
Math.abs(botChunkPosZ - coreChunkPosZ) >= bot.world.simulationDistance
) {
reset();
refill(false);