mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
correclty implement findFreePosition and setOnGround to fix navigation wand teleport issues
This commit is contained in:
@ -47,7 +47,7 @@ public class LocationMaskedPlayerWrapper extends AsyncPlayer {
|
|||||||
@Override
|
@Override
|
||||||
public void findFreePosition(Location searchPos) {
|
public void findFreePosition(Location searchPos) {
|
||||||
if (allowTeleport) {
|
if (allowTeleport) {
|
||||||
super.setPosition(searchPos);
|
super.findFreePosition(searchPos);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -55,7 +55,7 @@ public class LocationMaskedPlayerWrapper extends AsyncPlayer {
|
|||||||
@Override
|
@Override
|
||||||
public void setOnGround(Location searchPos) {
|
public void setOnGround(Location searchPos) {
|
||||||
if (allowTeleport) {
|
if (allowTeleport) {
|
||||||
super.setPosition(searchPos);
|
super.setOnGround(searchPos);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user