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

Settings default to null instead of adding null to function

This commit is contained in:
DJ1TJOO 2021-03-11 19:00:44 +01:00
parent d887439966
commit 86aba0d08a

View File

@ -324,7 +324,7 @@ export class AchievementCollection {
* @param {string} key - Maps to an Achievement
* @param {any} data - Data received from signal dispatches for validation
*/
unlock(key, data) {
unlock(key, data = null) {
if (!this.map.has(key)) {
return;
}
@ -594,7 +594,7 @@ export class AchievementCollection {
/** @param {Achievement} achievement */
initStore100Unique({ key }) {
this.unlock(key, null);
this.unlock(key);
}
/** @returns {boolean} */
@ -604,7 +604,7 @@ export class AchievementCollection {
/** @param {Achievement} achievement */
initStoreShape({ key }) {
this.unlock(key, null);
this.unlock(key);
}
/** @returns {boolean} */