EntityCreature#setPathTo now synchronized

This commit is contained in:
Felix Cravic 2020-08-07 09:28:15 +02:00
parent 72a80da0bc
commit 75ef5e7b46

View File

@ -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;