@rpg-engine/long-bow 0.5.5 → 0.5.7

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.
@@ -118,7 +118,10 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
118
118
  //! If an item is not showing, remember that you MUST run yarn atlas:copy everytime you add a new item to the atlas (it will sync our public folder atlas with src/atlas).
119
119
  //!Due to React's limitations, we cannot import it from the public folder directly!
120
120
  var spriteData = (atlasJSON == null ? void 0 : (_atlasJSON$frames = atlasJSON.frames) == null ? void 0 : _atlasJSON$frames[spriteKey]) || (atlasJSON == null ? void 0 : (_atlasJSON$frames2 = atlasJSON.frames) == null ? void 0 : _atlasJSON$frames2['others/no-image.png']);
121
- if (!spriteData) throw new Error("Sprite " + spriteKey + " not found in atlas!");
121
+ if (!spriteData) {
122
+ console.error("SpriteFromAtlas: Could not find sprite with key " + spriteKey + " in atlasJSON.");
123
+ return null;
124
+ }
122
125
  return React.createElement(Container, {
123
126
  width: width,
124
127
  height: height,