From e23c76511dc1b59fc513617bb5e15d653d1ffbb7 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sun, 24 May 2020 20:57:01 +0200 Subject: [PATCH] correclty implement findFreePosition and setOnGround to fix navigation wand teleport issues --- .../com/boydti/fawe/wrappers/LocationMaskedPlayerWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/wrappers/LocationMaskedPlayerWrapper.java b/worldedit-core/src/main/java/com/boydti/fawe/wrappers/LocationMaskedPlayerWrapper.java index dc15ca7d6..b33f4558a 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/wrappers/LocationMaskedPlayerWrapper.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/wrappers/LocationMaskedPlayerWrapper.java @@ -47,7 +47,7 @@ public class LocationMaskedPlayerWrapper extends AsyncPlayer { @Override public void findFreePosition(Location searchPos) { if (allowTeleport) { - super.setPosition(searchPos); + super.findFreePosition(searchPos); update(); } } @@ -55,7 +55,7 @@ public class LocationMaskedPlayerWrapper extends AsyncPlayer { @Override public void setOnGround(Location searchPos) { if (allowTeleport) { - super.setPosition(searchPos); + super.setOnGround(searchPos); update(); } }