fix: resize on local second tick instead of server to prevent core going to height limit (only for genius)

This commit is contained in:
ChomeNS
2025-05-05 18:28:56 +07:00
parent b38f2a7e1b
commit 8c1ea040cf
2 changed files with 7 additions and 6 deletions

View File

@@ -121,12 +121,15 @@ public class CorePlugin implements Listener {
forceRunPlaceBlock(command);
}
@Override
public void onLocalSecondTick () {
resizeTick();
}
@Override
public void onSecondTick () {
checkCoreTick();
resizeTick();
exists = isCoreExists();
if (shouldRefill) {
@@ -362,9 +365,7 @@ public class CorePlugin implements Listener {
if (oldSize.getY() != toSize.getY()) {
recalculateRelativePositions();
// this will be run just after this function finishes, since it runs in the same interval
shouldRefill = true;
refill(false);
}
}