isaacscript-common 1.2.199 → 1.2.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,8 @@ local ____SerializationType = require("enums.SerializationType")
12
12
  local SerializationType = ____SerializationType.SerializationType
13
13
  local ____deepCopy = require("functions.deepCopy")
14
14
  local deepCopy = ____deepCopy.deepCopy
15
+ local ____log = require("functions.log")
16
+ local log = ____log.log
15
17
  local ____table = require("functions.table")
16
18
  local clearTable = ____table.clearTable
17
19
  local ____constants = require("features.saveDataManager.constants")
@@ -70,11 +72,13 @@ function restoreDefaults(self, childTableName)
70
72
  end
71
73
  local saveDataDefaults = saveDataDefaultsMap[subscriberName]
72
74
  if saveDataDefaults == nil then
73
- error("Failed to find the default copy of the save data for subscriber: " .. subscriberName)
75
+ log("Error: Failed to find the default copy of the save data for subscriber: " .. subscriberName)
76
+ goto __continue14
74
77
  end
75
78
  local childTableDefaults = saveDataDefaults[childTableName]
76
79
  if childTableDefaults == nil then
77
- error((("Failed to find the default copy of the child table \"" .. childTableName) .. "\" for subscriber: ") .. subscriberName)
80
+ log((("Error: Failed to find the default copy of the child table \"" .. childTableName) .. "\" for subscriber: ") .. subscriberName)
81
+ goto __continue14
78
82
  end
79
83
  local childTableDefaultsTable = childTableDefaults
80
84
  local childTableDefaultsTableCopy = deepCopy(nil, childTableDefaultsTable, SerializationType.NONE, (subscriberName .. " --> ") .. childTableName)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.199",
3
+ "version": "1.2.200",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,8 +25,8 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "isaac-typescript-definitions": "^1.0.376",
29
- "isaacscript-lint": "^1.0.93",
28
+ "isaac-typescript-definitions": "^1.0.377",
29
+ "isaacscript-lint": "^1.0.95",
30
30
  "isaacscript-tsconfig": "^1.1.8",
31
31
  "typedoc": "^0.22.13",
32
32
  "typescript": "4.6.2",