dougbot/bridge/lib/mineflayer
roberts 7199acf149 Fix attack crash: provide empty item when hand is empty
The inventory_transaction packet for attacks includes held_item.
When Doug has nothing in his hand, bot.heldItem is null, causing
"Cannot read properties of null (reading 'network_id')".

Fix: provide a proper empty item object with network_id=0 when
heldItem is null. Attacks now send successfully.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 15:14:19 -05:00
..
.github Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
lib Fix attack crash: provide empty item when hand is empty 2026-03-30 15:14:19 -05:00
.gitignore Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
.gitpod.yml Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
.npmignore Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
.npmrc Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
bedrock-types.d.ts Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
index.d.ts Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
index.js Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
LICENSE Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
package.json Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00
tsconfig.json Fix chat, brain stability, MariaDB reconnect, suppress warnings 2026-03-30 12:33:17 -05:00