mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
add extra cap for miner progress just to be sure
This commit is contained in:
parent
e7a4307a5e
commit
4dd4724b29
@ -84,6 +84,8 @@ export class MinerSystem extends GameSystemWithFilter {
|
||||
}
|
||||
}
|
||||
|
||||
//make sure progress never gets out of control
|
||||
minerComp.progress = Math.min(minerComp.progress, targetProgress + 0.5);
|
||||
if (minerComp.progress >= targetProgress) {
|
||||
// We can try to eject
|
||||
const extraProgress = minerComp.progress - targetProgress;
|
||||
|
Loading…
Reference in New Issue
Block a user