fix(pocket-base): clear fall distance after portal travel
This commit is contained in:
@@ -289,6 +289,7 @@ final class PocketBaseController implements Listener, Runnable {
|
||||
|
||||
private void teleport(Entity entity, Location destination) {
|
||||
cooldownUntil.put(entity.getUniqueId(), System.nanoTime() + PORTAL_COOLDOWN_NANOS);
|
||||
entity.setFallDistance(0.0F);
|
||||
entity.teleport(destination, PlayerTeleportEvent.TeleportCause.PLUGIN);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user