fix: resize on local second tick instead of server to prevent core going to height limit (only for genius)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user