Skip to content

Commit f9b2b90

Browse files
authored
Fixes #7 ensure arguments exist (#8)
1 parent 12780ad commit f9b2b90

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.0.1
4+
5+
- Fixed bug where importing from compendiums would sometimes break.
6+
37
## v2.0.0
48

59
- Major rewrite of how the module is accessed.

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "scene-packer",
33
"title": "Library: Scene Packer",
44
"description": "A module to assist with Scene and Adventure packing and unpacking.",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"library": "true",
77
"manifestPlusVersion": "1.0.0",
88
"minimumCoreVersion": "0.7.9",

scripts/wrapped.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Hooks.once('setup', function () {
1818
return wrapped.bind(this)(...args);
1919
}
2020

21+
// Sometimes the updateData argument isn't set
22+
if (!args[2]) {
23+
args[2] = {};
24+
}
2125
// Set the source uuid of the entity if it isn't already set in updateData
2226
if (!args[2]['flags.core.sourceId']) {
2327
const source = await pack.getEntity(args[1]);

0 commit comments

Comments
 (0)