@rpg-engine/long-bow 0.2.76 → 0.2.77

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.
@@ -6469,7 +6469,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
6469
6469
  opacity = _ref$opacity === void 0 ? 1 : _ref$opacity;
6470
6470
  //! 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).
6471
6471
  //!Due to React's limitations, we cannot import it from the public folder directly!
6472
- var spriteData = atlasJSON.frames[spriteKey];
6472
+ var spriteData = atlasJSON.frames[spriteKey || 'others/no-image.png'];
6473
6473
  if (!spriteData) throw new Error("Sprite " + spriteKey + " not found in atlas!");
6474
6474
  return React.createElement(ErrorBoundary, null, React.createElement(Container, {
6475
6475
  width: width,