From 6c6f23d8b239304116552a288bfb80078bcfff7e Mon Sep 17 00:00:00 2001 From: QueenRose4444 <159089781+QueenRose4444@users.noreply.github.com> Date: Sat, 16 May 2026 11:11:16 +1000 Subject: [PATCH] Fix nether portal linking (#793): don't scale Y by dimension multiplier The NetherPortalBlockMixin was applying the dimension coordinate multiplier (8x for Nether->Overworld) to the Y coordinate in clampToBounds. Vanilla only scales X and Z - Y is never scaled. This caused the portal search target to have an incorrect Y position, making the game select the wrong destination portal. --- .../ryanhcode/sable/mixin/portal/NetherPortalBlockMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/dev/ryanhcode/sable/mixin/portal/NetherPortalBlockMixin.java b/common/src/main/java/dev/ryanhcode/sable/mixin/portal/NetherPortalBlockMixin.java index a9182fd3..87eca100 100644 --- a/common/src/main/java/dev/ryanhcode/sable/mixin/portal/NetherPortalBlockMixin.java +++ b/common/src/main/java/dev/ryanhcode/sable/mixin/portal/NetherPortalBlockMixin.java @@ -28,7 +28,7 @@ public class NetherPortalBlockMixin { return instance.clampToBounds( globalPos.x * multiplier, - globalPos.y * multiplier, + globalPos.y, globalPos.z * multiplier ); }