mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Miner unit bugfixes
This commit is contained in:
parent
5259969384
commit
c5cb2d8683
@ -39,6 +39,7 @@ public class MinerAI extends AIController{
|
||||
//core full of the target item, do nothing
|
||||
if(targetItem != null && core.acceptStack(targetItem, 1, unit) == 0){
|
||||
unit.clearItem();
|
||||
miner.mineTile(null);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -63,6 +64,8 @@ public class MinerAI extends AIController{
|
||||
}
|
||||
}
|
||||
}else{
|
||||
miner.mineTile(null);
|
||||
|
||||
if(unit.stack.amount == 0){
|
||||
mining = true;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user