@rpg-engine/long-bow 0.5.88 → 0.5.90
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 +2 -2
- 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 +2 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/ItemContainer.tsx +6 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +4 -1
package/dist/long-bow.esm.js
CHANGED
|
@@ -14272,7 +14272,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
14272
14272
|
onPointerDown: onDragStart !== undefined && onDragEnd !== undefined ? undefined : function () {
|
|
14273
14273
|
if (item) onPointerDown(item.type, containerType != null ? containerType : null, item);
|
|
14274
14274
|
},
|
|
14275
|
-
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === ItemType.Consumable || (item == null ? void 0 : item.type) === ItemType.Tool)
|
|
14275
|
+
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === ItemType.Consumable || (item == null ? void 0 : item.type) === ItemType.Tool || (item == null ? void 0 : item.subType) === ItemSubType.Seed)
|
|
14276
14276
|
}, React.createElement(Draggable, {
|
|
14277
14277
|
axis: isSelectingShortcut ? 'none' : 'both',
|
|
14278
14278
|
defaultClassName: item ? 'draggable' : 'empty-slot',
|
|
@@ -16570,7 +16570,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
16570
16570
|
startScrolling = _useScrollOnDrag.startScrolling,
|
|
16571
16571
|
stopScrolling = _useScrollOnDrag.stopScrolling;
|
|
16572
16572
|
var handleSetShortcut = function handleSetShortcut(item, index) {
|
|
16573
|
-
if (item.type === ItemType.Consumable || item.type === ItemType.Tool) {
|
|
16573
|
+
if (item.type === ItemType.Consumable || item.type === ItemType.Tool || item.subType === ItemSubType.Seed) {
|
|
16574
16574
|
setItemShortcut == null ? void 0 : setItemShortcut(item.key, index);
|
|
16575
16575
|
}
|
|
16576
16576
|
};
|