isaacscript-common 1.2.60 → 1.2.61

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.
@@ -1,6 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
2
  local ____lualib = require("lualib_bundle")
3
3
  local Map = ____lualib.Map
4
+ local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
4
5
  local ____exports = {}
5
6
  local getAllSaveDataToWriteToDisk
6
7
  local ____deepCopy = require("functions.deepCopy")
@@ -25,6 +26,9 @@ function getAllSaveDataToWriteToDisk(self, saveDataMap, saveDataConditionalFuncM
25
26
  end
26
27
  end
27
28
  local saveDataWithoutRoom = {persistent = saveData.persistent, run = saveData.run, level = saveData.level}
29
+ if #__TS__ObjectKeys(saveDataWithoutRoom) == 0 then
30
+ goto __continue4
31
+ end
28
32
  local saveDataCopy = deepCopy(nil, saveDataWithoutRoom, SerializationType.SERIALIZE, subscriberName)
29
33
  allSaveData[subscriberName] = saveDataCopy
30
34
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.60",
3
+ "version": "1.2.61",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",