1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +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

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();