(1.21) Client is missing recipe manager on dedicated server
danielpetkau opened this issue ยท 1 comments
Upon connecting to a dedicated server, the client disconnects with the message "No recipe manager was present - tried server, client, and captured value." I found that the client never receives a DataManagerSyncPacket, which should have been sent from the physical server in the OnDataPackSyncEvent. Then, the client calls getUnsafeRecipeManager in the TagsUpdatedEvent, causing the crash.
I have looked into this, and I believe there is no reason the client has to do this updating as early as it does. So I have moved it to a later, client only event, the RecipesUpdatedEvent. We'll have to track down the line to see if this causes issues with our recipe caching, data manager syncing, components, etc. but for now, we'll call this fixed.