mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
Fixed logic controller updating (#5240)
This commit is contained in:
parent
1e1d7d2e92
commit
6398fed47b
@ -339,6 +339,7 @@ public class LExecutor{
|
||||
public static LogicAI checkLogicAI(LExecutor exec, Object unitObj){
|
||||
if(unitObj instanceof Unit unit && exec.obj(varUnit) == unit && unit.team == exec.team && !unit.isPlayer() && !(unit.controller() instanceof FormationAI)){
|
||||
if(unit.controller() instanceof LogicAI la){
|
||||
la.controller = exec.building(varThis);
|
||||
return la;
|
||||
}else{
|
||||
var la = new LogicAI();
|
||||
|
Loading…
Reference in New Issue
Block a user