minecraft-inventory 0.1.30 → 0.1.31
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/package.json
CHANGED
|
@@ -320,8 +320,8 @@ export function createMineflayerConnector(bot: MineflayerBot, options?: Mineflay
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
const invSlots: SlotState[] = []
|
|
323
|
-
// Slots 0–8: crafting
|
|
324
|
-
for (let i = 0; i < 9; i++) invSlots.push({ index: i, item:
|
|
323
|
+
// Slots 0–8: crafting result (0), crafting grid (1-4), armor (5-8)
|
|
324
|
+
for (let i = 0; i < 9; i++) invSlots.push({ index: i, item: convert(bot.inventory.slots[i]) })
|
|
325
325
|
// Slots 9–35: main inventory
|
|
326
326
|
for (let i = 9; i <= 35; i++) invSlots.push({ index: i, item: readSlot(i) })
|
|
327
327
|
// Slots 36–44: hotbar
|
|
@@ -562,9 +562,9 @@ export function createMineflayerConnector(bot: MineflayerBot, options?: Mineflay
|
|
|
562
562
|
slots.push({ index: 53, item: convert(bot.inventory.slots[45]) })
|
|
563
563
|
} else {
|
|
564
564
|
// Player inventory window structure (per registry):
|
|
565
|
-
// Slots 0-8:
|
|
565
|
+
// Slots 0-8: crafting result (0), crafting grid (1-4), armor (5-8)
|
|
566
566
|
for (let i = 0; i < 9; i++) {
|
|
567
|
-
slots.push({ index: i, item:
|
|
567
|
+
slots.push({ index: i, item: convert(bot.inventory.slots[i]) })
|
|
568
568
|
}
|
|
569
569
|
// Slots 9-35: Player inventory (bot.inventory.slots indices 9-35)
|
|
570
570
|
for (let i = 9; i <= 35; i++) {
|