@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
|
@@ -14278,7 +14278,7 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
14278
14278
|
onPointerDown: onDragStart !== undefined && onDragEnd !== undefined ? undefined : function () {
|
|
14279
14279
|
if (item) onPointerDown(item.type, containerType != null ? containerType : null, item);
|
|
14280
14280
|
},
|
|
14281
|
-
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === shared.ItemType.Consumable || (item == null ? void 0 : item.type) === shared.ItemType.Tool)
|
|
14281
|
+
isSelectingShortcut: isSelectingShortcut && ((item == null ? void 0 : item.type) === shared.ItemType.Consumable || (item == null ? void 0 : item.type) === shared.ItemType.Tool || (item == null ? void 0 : item.subType) === shared.ItemSubType.Seed)
|
|
14282
14282
|
}, React__default.createElement(Draggable, {
|
|
14283
14283
|
axis: isSelectingShortcut ? 'none' : 'both',
|
|
14284
14284
|
defaultClassName: item ? 'draggable' : 'empty-slot',
|
|
@@ -16573,7 +16573,7 @@ var ItemContainer$1 = function ItemContainer(_ref) {
|
|
|
16573
16573
|
startScrolling = _useScrollOnDrag.startScrolling,
|
|
16574
16574
|
stopScrolling = _useScrollOnDrag.stopScrolling;
|
|
16575
16575
|
var handleSetShortcut = function handleSetShortcut(item, index) {
|
|
16576
|
-
if (item.type === shared.ItemType.Consumable || item.type === shared.ItemType.Tool) {
|
|
16576
|
+
if (item.type === shared.ItemType.Consumable || item.type === shared.ItemType.Tool || item.subType === shared.ItemSubType.Seed) {
|
|
16577
16577
|
setItemShortcut == null ? void 0 : setItemShortcut(item.key, index);
|
|
16578
16578
|
}
|
|
16579
16579
|
};
|