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:
parent
ed89d67773
commit
7f2132d763
@ -492,12 +492,11 @@ export class AchievementCollection {
|
|||||||
|
|
||||||
/** @param {ShapeDefinition} definition @returns {boolean} */
|
/** @param {ShapeDefinition} definition @returns {boolean} */
|
||||||
isIrrelevantShapeValid(definition) {
|
isIrrelevantShapeValid(definition) {
|
||||||
if (definition.cachedHash === this.root.hubGoals.currentGoal.definition.cachedHash) {
|
const levels = this.root.gameMode.getLevelDefinitions();
|
||||||
return false;
|
for (let i = 0; i < levels.length; i++) {
|
||||||
}
|
if (definition.cachedHash === levels[i].shape) {
|
||||||
|
return false;
|
||||||
if (definition.cachedHash === this.root.gameMode.getBlueprintShapeKey()) {
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const upgrades = this.root.gameMode.getUpgrades();
|
const upgrades = this.root.gameMode.getUpgrades();
|
||||||
|
Loading…
Reference in New Issue
Block a user