v1.1.2 - Fixed a softlock at the last argument

This commit is contained in:
Jacoder23 2022-10-30 01:14:53 +08:00
parent 66b42f0c83
commit f382571cfa
2 changed files with 2 additions and 2 deletions

View File

@ -3525,7 +3525,7 @@ var newItem = "Love is, despite suffering, ultimately good.";
inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists"); inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists");
if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) { if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) {
inventory.splice(inventory.indexOf("Love is a wild, ultimately transient state."), 1); // 2nd parameter means remove one item only inventory.splice(inventory.indexOf("Love is, despite suffering, ultimately good."), 1);
} }
[continued] [continued]

View File

@ -3506,7 +3506,7 @@ var newItem = "Love is, despite suffering, ultimately good.";
inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists"); inventory.indexOf(newItem) === -1 ? inventory.push(newItem) : console.log("This idea already exists");
if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) { if (inventory.indexOf("Love is, despite suffering, ultimately good.") > -1) {
inventory.splice(inventory.indexOf("Love is a wild, ultimately transient state."), 1); // 2nd parameter means remove one item only inventory.splice(inventory.indexOf("Love is, despite suffering, ultimately good."), 1);
} }
[continued] [continued]