From d75611ff6fa7ccb325d5796165e254ad28ffa221 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 16 Mar 2025 08:55:17 +0700 Subject: [PATCH] fix: hopefully fix the pointer overflow --- build-number.txt | 2 +- src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-number.txt b/build-number.txt index ec2b293e..c6db27c6 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -1830 \ No newline at end of file +1831 \ 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 05e87d80..85196775 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java @@ -326,7 +326,7 @@ public class CorePlugin extends PositionPlugin.Listener { if (!ready) return; // fixes a bug where the Y positions are more than the ones in toSize - if (to.getY() > toSize.getY() || from.getY() > toSize.getY()) recalculateRelativePositions(); + if (to.getY() > toSize.getY() || from.getY() > toSize.getY()) reset(); final Vector3i oldSize = toSize;