Skip to content

Commit

Permalink
Fixed: Units lose LogicAI after reading. (#8920)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinRi2 authored Aug 13, 2023
1 parent 2b05264 commit f2c476a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/mindustry/ai/types/LogicAI.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public class LogicAI extends AIController{
private float lastMoveX, lastMoveY;
private int lastPathId = 0;

// LogicAI state should not be reset after reading.
@Override
public boolean keepState(){
return true;
}

@Override
public void updateMovement(){
if(control == LUnitControl.pathfind){
Expand Down

0 comments on commit f2c476a

Please sign in to comment.