mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
EntityCreature#setPathTo now synchronized
This commit is contained in:
parent
72a80da0bc
commit
75ef5e7b46
@ -323,7 +323,7 @@ public abstract class EntityCreature extends LivingEntity {
|
||||
* @param position the position to find the path to, null to reset the pathfinder
|
||||
* @return true if a path has been found
|
||||
*/
|
||||
public boolean setPathTo(Position position) {
|
||||
public synchronized boolean setPathTo(Position position) {
|
||||
this.pathFinder.reset();
|
||||
if (position == null) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user