From 6c98da41843725665fecfcd19f7308d6a0bfd14a Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 31 Mar 2025 14:27:50 +0700 Subject: [PATCH] fix: core not being relocated when over simulation distance --- build-number.txt | 2 +- .../java/me/chayapak1/chomens_bot/plugins/CorePlugin.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-number.txt b/build-number.txt index 47b9a822..7b63e9f8 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -2300 \ No newline at end of file +2301 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java index 5a355500..960e529c 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java @@ -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);