@rpg-engine/long-bow 0.2.77 → 0.2.79
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
package/dist/long-bow.esm.js
CHANGED
|
@@ -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 || 'others/no-image.png'];
|
|
6472
|
+
var spriteData = atlasJSON.frames[spriteKey] || atlasJSON.frames['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,
|