From 13a5c0d4b648e05452acbd839282554f290084ef Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:39:54 +0200 Subject: [PATCH] Fixed copy and paste error --- .../main/java/org/geysermc/geyser/session/GeyserSession.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java index 262137f49..bfdf84bca 100644 --- a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java +++ b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java @@ -720,8 +720,8 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource { int maxY = this.dimensionType.maxY(); for (JavaDimension javaDimension : this.getRegistryCache().dimensions().values()) { if (javaDimension.bedrockId() == BedrockDimension.OVERWORLD_ID) { - minY = Math.min(minY, this.dimensionType.minY()); - maxY = Math.max(maxY, this.dimensionType.maxY()); + minY = Math.min(minY, javaDimension.minY()); + maxY = Math.max(maxY, javaDimension.maxY()); } } minY = Math.max(minY, -512);