correclty implement findFreePosition and setOnGround to fix navigation wand teleport issues

This commit is contained in:
Aurora 2020-05-24 20:57:01 +02:00 committed by dordsor21
parent 487e6c9fa3
commit e23c76511d

View File

@ -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();
}
}