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:
parent
694b95c25c
commit
3a99628670
@ -76,11 +76,13 @@ export class MinerSystem extends GameSystemWithFilter {
|
||||
const exitEntity = minerComp.cachedExitMiner;
|
||||
if (exitEntity) {
|
||||
const exitMinerComp = exitEntity.components.Miner;
|
||||
exitMinerComp.progress += progressGrowth;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user