Skip to content

Pin the minecraft-data tarball that carries the 26.1 enum fix - #15

Closed
u9g wants to merge 1 commit into
mainfrom
nmd-26-1-enums
Closed

Pin the minecraft-data tarball that carries the 26.1 enum fix#15
u9g wants to merge 1 commit into
mainfrom
nmd-26-1-enums

Conversation

@u9g

@u9g u9g commented Sep 7, 2026

Copy link
Copy Markdown
Owner

On 26.1 data/pc/26.1/protocol.json declared two serverbound fields as string mappers that are plain varints on every other version:

  • packet_use_entity.hand
  • packet_client_command.actionId

mineflayer writes the numeric id for both, so protodef threw SizeOf error for undefined : 0 is not in the mappings value inside Serializer._transform. That errors the write stream and closes the socket without a kicked or error event: bot.entity still reads, physicsEnabled is still true, and a control loop keeps driving a bot that has sent nothing for minutes. In practice bot.activateEntity (every villager shop and NPC) and bot.respawn each ended the session on the first use.

v3.116.0-allprs.3 is byte-for-byte allprs.2 apart from those two field types, so nothing else in the pinned stack moves. Upstream: PrismarineJS/minecraft-data#1278 for use_entity.hand; client_command.actionId is also handled from the code side by PrismarineJS/mineflayer#4076, which reads whichever form the loaded schema declares, so a later stack rebuild that picks up #4076 stays correct either way.

Verified on JartexNetwork BedWars (26.1 over a 1.8 backend): with the old pin, right-clicking the shop villager dropped the connection; with this one the shop window opens, purchases go through, and the bot respawns after dying and keeps playing a full game.

26.1 declared use_entity.hand and client_command.actionId as string mappers,
so mineflayer's numeric writes threw in the serializer and closed the socket:
bot.activateEntity and bot.respawn both ended the connection with no kicked
event, leaving a bot that looks frozen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant