From 94292cea6e290d2a2b9748bcfe5aba6799690331 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Mon, 10 Jul 2023 18:43:49 +0200 Subject: [PATCH] shift pregen center to blocks instead of regions --- src/main/java/com/volmit/iris/core/commands/CommandPregen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java index a221c7e09..32906de2a 100644 --- a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java +++ b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java @@ -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);