Miner unit bugfixes
This commit is contained in:
@@ -39,6 +39,7 @@ public class MinerAI extends AIController{
|
|||||||
//core full of the target item, do nothing
|
//core full of the target item, do nothing
|
||||||
if(targetItem != null && core.acceptStack(targetItem, 1, unit) == 0){
|
if(targetItem != null && core.acceptStack(targetItem, 1, unit) == 0){
|
||||||
unit.clearItem();
|
unit.clearItem();
|
||||||
|
miner.mineTile(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,6 +64,8 @@ public class MinerAI extends AIController{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
miner.mineTile(null);
|
||||||
|
|
||||||
if(unit.stack.amount == 0){
|
if(unit.stack.amount == 0){
|
||||||
mining = true;
|
mining = true;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user