@rpg-engine/long-bow 0.2.76 → 0.2.78
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.
- package/dist/long-bow.cjs.development.js +1 -1
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +1 -1
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/shared/SpriteFromAtlas.tsx +2 -1
|
@@ -6475,7 +6475,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
|
|
|
6475
6475
|
opacity = _ref$opacity === void 0 ? 1 : _ref$opacity;
|
|
6476
6476
|
//! 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).
|
|
6477
6477
|
//!Due to React's limitations, we cannot import it from the public folder directly!
|
|
6478
|
-
var spriteData = atlasJSON.frames[spriteKey];
|
|
6478
|
+
var spriteData = atlasJSON.frames[spriteKey] || atlasJSON.frames['others/no-image.png'];
|
|
6479
6479
|
if (!spriteData) throw new Error("Sprite " + spriteKey + " not found in atlas!");
|
|
6480
6480
|
return React__default.createElement(ErrorBoundary, null, React__default.createElement(Container, {
|
|
6481
6481
|
width: width,
|