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

Fix: don't lock jumping input for minecart (#5959)

* Don't lock jumping for minecart.
This commit is contained in:
oryxel
2025-11-02 18:17:56 +07:00
committed by GitHub
parent d5b0091108
commit 208f4611cc

View File

@@ -210,6 +210,13 @@ public class MinecartEntity extends Entity implements Tickable {
return Vector3f.from(0, getYaw(), 0);
}
@Override
public boolean doesJumpDismount() {
// This is a little bit misleading because jumping is literally the only way to dismount for Touch users.
// Therefore, do this so we won't lock jumping to let Touch user able to dismount.
return false;
}
@Override
protected InteractiveTag testInteraction(Hand hand) {
if (definition == EntityDefinitions.CHEST_MINECART || definition == EntityDefinitions.HOPPER_MINECART) {