mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 03:14:04 +00:00
Replace setPosition with trySetPosition (#1403)
Allows cancellation information to be fed back into the ascend/descend algorithms. (cherry picked from commit 71e104bcb187a5313e88dda5df79059c8ffbc1fe)
This commit is contained in:
@@ -131,8 +131,8 @@ public class PlayerProxy extends AbstractPlayerActor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPosition(Vector3 pos, float pitch, float yaw) {
|
||||
basePlayer.setPosition(pos, pitch, yaw);
|
||||
public boolean trySetPosition(Vector3 pos, float pitch, float yaw) {
|
||||
return basePlayer.trySetPosition(pos, pitch, yaw);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user