dougbot/bridge/lib
roberts a3e3d9f6ea Fix inventory: window_id 'inventory' now maps to bot.inventory
Root cause: Bedrock sends inventory_content with window_id as string
("inventory", "armor", "offhand") but bot.inventory has numeric id 0.
The getWindow() lookup failed silently, so inventory was never populated.

Fix: check for string window_id values and map them to bot.inventory
directly, bypassing the numeric ID lookup.

This fixes:
- bot.inventory.items() returning empty
- Auto-equip not detecting items
- "item not in inventory" errors for equip commands
- Inventory check command returning empty

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:12:15 -05:00
..
mineflayer Fix inventory: window_id 'inventory' now maps to bot.inventory 2026-03-30 21:12:15 -05:00
prismarine-chunk Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
prismarine-registry Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00