mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Procedural sectors on Serpulo now require a Foundation core
This commit is contained in:
parent
aecc3980fd
commit
d820557bd3
6 changed files with 41 additions and 12 deletions
|
|
@ -265,12 +265,6 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
Unit unit = Groups.unit.getByID(id);
|
||||
if(unit != null && unit.team == player.team()){
|
||||
|
||||
//Units with logic AI can still be controlled, but there currently aren't any mechanisms to do so on the client end unless the processor "steals" units that are already selected (control issue)
|
||||
if(unit.controller() instanceof LogicAI ai && !(ai.controller != null && ai.controller.block.privileged)){
|
||||
//reset to commandAI if applicable
|
||||
unit.resetController();
|
||||
}
|
||||
|
||||
if(unit.controller() instanceof CommandAI ai){
|
||||
//implicitly order it to move
|
||||
if(ai.command == null || ai.command.switchToMove){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue