1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Fix: Passenger y-axis offset for shulkers and falling blocks (#5722)

This commit is contained in:
Xamyr
2025-08-13 12:22:03 +01:00
committed by GitHub
parent c23ac5caf3
commit d656b4419e

View File

@@ -261,8 +261,8 @@ public final class EntityUtils {
} }
switch (passenger.getDefinition().entityType()) { switch (passenger.getDefinition().entityType()) {
case MINECART, HOPPER_MINECART, TNT_MINECART, CHEST_MINECART, FURNACE_MINECART, SPAWNER_MINECART, case MINECART, HOPPER_MINECART, TNT_MINECART, CHEST_MINECART, FURNACE_MINECART, SPAWNER_MINECART,
COMMAND_BLOCK_MINECART -> yOffset += passenger.getDefinition().height() * 0.5f; COMMAND_BLOCK_MINECART, SHULKER -> yOffset += passenger.getDefinition().height() * 0.5f;
case FALLING_BLOCK -> yOffset += 0.5f; case FALLING_BLOCK -> yOffset += 0.995f;
} }
if (mount instanceof BoatEntity) { if (mount instanceof BoatEntity) {
yOffset -= mount.getDefinition().height() * 0.5f; yOffset -= mount.getDefinition().height() * 0.5f;