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

fixed all the linting errors

This commit is contained in:
Sense101 2021-01-03 13:32:14 +00:00 committed by GitHub
parent 552c37dd88
commit cca0d7728a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,8 +299,8 @@ export class ItemProcessorSystem extends GameSystemWithFilter {
const bonusTimeToApply = Math.min(originalTime, processorComp.bonusTime);
let timeToProcess = originalTime - bonusTimeToApply;
const itemOnBeltSpeed = 1/ this.root.hubGoals.getBeltBaseSpeed();
if(processorComp.extraOutputTime <= itemOnBeltSpeed){
const itemOnBeltSpeed = 1 / this.root.hubGoals.getBeltBaseSpeed();
if (processorComp.extraOutputTime <= itemOnBeltSpeed){
timeToProcess -= processorComp.extraOutputTime;
}
processorComp.extraOutputTime = 0;