diff --git a/src/main/java/me/jellysquid/mods/sodium/mixin/features/render/immediate/DirectionMixin.java b/src/main/java/me/jellysquid/mods/sodium/mixin/features/render/immediate/DirectionMixin.java index 39a2981c84..5d05122d1a 100644 --- a/src/main/java/me/jellysquid/mods/sodium/mixin/features/render/immediate/DirectionMixin.java +++ b/src/main/java/me/jellysquid/mods/sodium/mixin/features/render/immediate/DirectionMixin.java @@ -30,6 +30,10 @@ public class DirectionMixin { @SuppressWarnings({ "StatementWithEmptyBody", "JavadocReference" }) @Overwrite public static Direction getFacing(float x, float y, float z) { + // Vanilla quirk: return NORTH if all coordinates are zero + if (x == 0 && y == 0 && z == 0) + return Direction.NORTH; + // First choice in ties: negative, positive; Y, Z, X var yM = Math.abs(y); var zM = Math.abs(z);