1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Fix 'Oops' achievement shape validation (#1113)

This commit is contained in:
Greg Considine 2021-03-16 12:58:37 -04:00 committed by GitHub
parent ed89d67773
commit 7f2132d763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,12 +492,11 @@ export class AchievementCollection {
/** @param {ShapeDefinition} definition @returns {boolean} */
isIrrelevantShapeValid(definition) {
if (definition.cachedHash === this.root.hubGoals.currentGoal.definition.cachedHash) {
return false;
}
if (definition.cachedHash === this.root.gameMode.getBlueprintShapeKey()) {
return false;
const levels = this.root.gameMode.getLevelDefinitions();
for (let i = 0; i < levels.length; i++) {
if (definition.cachedHash === levels[i].shape) {
return false;
}
}
const upgrades = this.root.gameMode.getUpgrades();