Skip to content

Feat/custom recipes#1542

Open
DrPerkyLegit wants to merge 10 commits intoMCLCE:mainfrom
DrPerkyLegit:feat/custom-recipes
Open

Feat/custom recipes#1542
DrPerkyLegit wants to merge 10 commits intoMCLCE:mainfrom
DrPerkyLegit:feat/custom-recipes

Conversation

@DrPerkyLegit
Copy link
Copy Markdown
Contributor

Description

adding a packet for the server to sync recipes it has with the client

Changes

Previous Behavior

before this the client and server just assumed they had the correct recipe list, now its synced to ensure proper crafting

Root Cause

client and server were always the same, tight protocol versions ensured this was never needed on consoles

New Behavior

now the client gets a list of recipes from the server

Fix Implementation

during the PreLoginPacket the client sets a dirty recipe state thats waiting for the recipe packet, its expecting the packet before the final LoginPacket from the server, the server then sends a CustomPayloadPacket with encoded recipe data making the client no longer wait for recipes and continue, if the server doesnt send the recipe data before the final LoginPacket then it will rebuild recipes from the clients list of known recipes

AI Use Disclosure

no

Related Issues

  • Fixes #[issue-number]
  • Related to #[issue-number]

@DrPerkyLegit
Copy link
Copy Markdown
Contributor Author

DrPerkyLegit commented Apr 24, 2026

i have tested this and it looks to be working perfectly but i would prefer someone else to test this out a bit before it gets accepted, we sync normal recipes so if you have issues with a default crafting recipe its caused by the syncing

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