Skip to content

Fix behavior pack download metadata#4

Open
MufHead wants to merge 1 commit into
masterfrom
codex/fix-behavior-pack-metadata
Open

Fix behavior pack download metadata#4
MufHead wants to merge 1 commit into
masterfrom
codex/fix-behavior-pack-metadata

Conversation

@MufHead
Copy link
Copy Markdown

@MufHead MufHead commented Apr 30, 2026

Summary

  • mark behavior pack info entries as addon packs and advertise them through resource pack infos
  • set behavior pack data info type to DATA_ADD_ON
  • reset hasAddonPacks before rebuilding pack metadata

Why

For protocol v766, ResourcePacksInfoPacket serialization writes resourcePackInfos. Behavior packs in behaviorPackInfos can be present in the stack without download metadata, causing clients to create 0-byte behavior pack cache files.

Test

  • ./gradlew.bat build -x test
  • verified with a NetEase Bedrock client that behavior packs download and apply through WaterdogPE

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