From 44163aa59ca0800fad06ac08edd65b44ef5d8cbb Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:24:56 +0200 Subject: [PATCH] Emulate correct value if entity doesn't have passengers --- .../viafabricplus/definition/EntityHeightOffsetsPre1_20_2.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/florianmichael/viafabricplus/definition/EntityHeightOffsetsPre1_20_2.java b/src/main/java/de/florianmichael/viafabricplus/definition/EntityHeightOffsetsPre1_20_2.java index 4c017753..d8797671 100644 --- a/src/main/java/de/florianmichael/viafabricplus/definition/EntityHeightOffsetsPre1_20_2.java +++ b/src/main/java/de/florianmichael/viafabricplus/definition/EntityHeightOffsetsPre1_20_2.java @@ -94,6 +94,8 @@ public class EntityHeightOffsetsPre1_20_2 { } return new Vector3f(0, (float) yOffset, zOffset); + } else { + return new Vector3f(); } } else if (entity instanceof SnifferEntity) { yOffset = 1.8;