mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Minor fixes
This commit is contained in:
parent
0d5869aad9
commit
2eed3cc2eb
2 changed files with 5 additions and 1 deletions
|
|
@ -151,6 +151,8 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
logicCutscene = false;
|
||||
itemDepositCooldown = 0f;
|
||||
Arrays.fill(controlGroups, null);
|
||||
lastUnit = null;
|
||||
lastPlans.clear();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -814,6 +816,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
|
||||
if(player.isBuilder()){
|
||||
if(player.unit() != lastUnit && player.unit().plans.size <= 1){
|
||||
player.unit().plans.ensureCapacity(lastPlans.size);
|
||||
for(var plan : lastPlans){
|
||||
player.unit().plans.addLast(plan);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue