shift pregen center to blocks instead of regions

This commit is contained in:
CocoTheOwner
2023-07-10 18:43:49 +02:00
parent fa3ac36e8c
commit 94292cea6e

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