1
0
Fork 0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-04-17 19:12:14 +02:00

Set ground status to false for teleports

This commit is contained in:
SamB440 2025-04-04 16:00:52 +01:00
parent ae130cf5a5
commit 9e65b502af
No known key found for this signature in database
GPG key ID: 65A5733A97C05078

View file

@ -126,7 +126,7 @@ public class JavaPlayerPositionTranslator extends PacketTranslator<ClientboundPl
Vector3f lastPlayerPosition = entity.getPosition().down(EntityDefinitions.PLAYER.offset());
float lastPlayerPitch = entity.getPitch();
Vector3f teleportDestination = Vector3f.from(newX, newY, newZ);
entity.moveAbsolute(teleportDestination, newYaw, newPitch, true, true);
entity.moveAbsolute(teleportDestination, newYaw, newPitch, false, true);
session.getGeyser().getLogger().debug("to " + entity.getPosition().getX() + " " + (entity.getPosition().getY() - EntityDefinitions.PLAYER.offset()) + " " + entity.getPosition().getZ());