mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-16 07:35:32 +01:00
Fix some bugs in straight line targeter
This commit is contained in:
parent
2f10ac86cc
commit
b4943a0e84
@ -231,6 +231,7 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
|
||||
}
|
||||
}
|
||||
active = null;
|
||||
fallback.setPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -245,8 +246,9 @@ public class MCTargetStrategy implements PathStrategy, EntityTarget {
|
||||
public void update() {
|
||||
if (active != null) {
|
||||
active.update();
|
||||
} else {
|
||||
fallback.update();
|
||||
}
|
||||
fallback.update();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user