mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-07 05:50:54 +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){
|
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(unitObj instanceof Unit unit && exec.obj(varUnit) == unit && unit.team == exec.team && !unit.isPlayer() && !(unit.controller() instanceof FormationAI)){
|
||||||
if(unit.controller() instanceof LogicAI la){
|
if(unit.controller() instanceof LogicAI la){
|
||||||
|
la.controller = exec.building(varThis);
|
||||||
return la;
|
return la;
|
||||||
}else{
|
}else{
|
||||||
var la = new LogicAI();
|
var la = new LogicAI();
|
||||||
|
Loading…
Reference in New Issue
Block a user