Merge pull request #382 from isaisstillalive/patch-3

Fixed Fill blueprint shapes of SandboxController may not work
This commit is contained in:
tobspr 2020-07-04 16:35:23 +02:00 committed by GitHub
commit ff1c1700fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,9 @@ export class HUDSandboxController extends BaseHUDPart {
}
giveBlueprints() {
if (!this.root.hubGoals.storedShapes[blueprintShape]) {
this.root.hubGoals.storedShapes[blueprintShape] = 0;
}
this.root.hubGoals.storedShapes[blueprintShape] += 1e4;
}