Merge pull request #1002 from CocoTheOwner/pregen-center-rescale

Fixes a scaling issue with pregen center
This commit is contained in:
Brian Fopiano
2023-07-29 03:03:27 -07:00
committed by GitHub

View File

@@ -50,7 +50,7 @@ public class CommandPregen implements DecreeExecutor {
int w = (radius >> 9 + 1) * 2;
IrisToolbelt.pregenerate(PregenTask
.builder()
.center(new Position2(center))
.center(new Position2(center.getBlockX() >> 9, center.getBlockZ() >> 9))
.width(w)
.height(w)
.build(), world);