@rpg-engine/long-bow 0.2.74 → 0.2.76

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.
@@ -6470,6 +6470,7 @@ var SpriteFromAtlas = function SpriteFromAtlas(_ref) {
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
6472
  var spriteData = atlasJSON.frames[spriteKey];
6473
+ if (!spriteData) throw new Error("Sprite " + spriteKey + " not found in atlas!");
6473
6474
  return React.createElement(ErrorBoundary, null, React.createElement(Container, {
6474
6475
  width: width,
6475
6476
  height: height,
@@ -29132,7 +29133,11 @@ var TradingItemRow = function TradingItemRow(_ref) {
29132
29133
  return React.createElement(ItemWrapper, null, React.createElement(ItemIconContainer, null, React.createElement(SpriteContainer$1, null, React.createElement(SpriteFromAtlas, {
29133
29134
  atlasIMG: atlasIMG,
29134
29135
  atlasJSON: atlasJSON,
29135
- spriteKey: traderItem.texturePath,
29136
+ spriteKey: getItemTextureKeyPath({
29137
+ key: traderItem.key,
29138
+ stackQty: traderItem.qty || 1,
29139
+ texturePath: traderItem.texturePath
29140
+ }, atlasJSON),
29136
29141
  imgScale: 2.5
29137
29142
  }))), React.createElement(ItemNameContainer, null, React.createElement(NameValue, null, React.createElement("p", null, React.createElement(Ellipsis, {
29138
29143
  maxLines: 1,