From 9ae9575ee8a6662a497bf2f645841605785333cd Mon Sep 17 00:00:00 2001 From: 56738 Date: Tue, 7 Jan 2025 23:51:43 +0100 Subject: [PATCH] Reset fall distance when teleporting entities --- .../property/entity/EntityLocationProperty.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/property/entity/EntityLocationProperty.java b/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/property/entity/EntityLocationProperty.java index e093b2db..3a8239bd 100644 --- a/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/property/entity/EntityLocationProperty.java +++ b/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/property/entity/EntityLocationProperty.java @@ -26,6 +26,10 @@ public EntityLocationProperty(Entity entity) { @Override public boolean setValue(@NotNull Location value) { - return entity.teleport(value); + boolean ok = entity.teleport(value); + if (ok) { + entity.setFallDistance(0); + } + return ok; } }