1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-30 11:30:36 +01:00

Tick inactive goal selectors

This commit is contained in:
Shane Freeder 2020-12-09 20:31:08 +00:00
parent 62c0f6553e
commit c81621d172

View file

@ -105,7 +105,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ @Override
+ public void inactiveTick() {
+ super.inactiveTick();
+ this.goalSelector.inactiveTick();
+ if (this.goalSelector.inactiveTick()) {
+ this.goalSelector.doTick();
+ }
+ if (this.targetSelector.inactiveTick()) {
+ this.targetSelector.doTick();
+ }