1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Minor cleanup

This commit is contained in:
Sense101 2022-02-06 15:57:48 +00:00
parent 694b95c25c
commit 3a99628670

View File

@ -76,11 +76,13 @@ export class MinerSystem extends GameSystemWithFilter {
const exitEntity = minerComp.cachedExitMiner;
if (exitEntity) {
const exitMinerComp = exitEntity.components.Miner;
if (exitMinerComp.progress < targetProgress + 0.5) {
// we can add on some extra progress
exitMinerComp.progress += progressGrowth;
}
continue;
}
}
//console.log(minerComp.progress);
if (minerComp.progress >= targetProgress) {
// We can try to eject