fix: hopefully fix the pointer overflow

This commit is contained in:
ChomeNS
2025-03-16 08:55:17 +07:00
parent 381b3bdc69
commit d75611ff6f
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
1830
1831

View File

@@ -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;