Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Add EMI Compat (Fixes #114) #137

Open
wants to merge 15 commits into
base: 1.19-2.0
Choose a base branch
from

Conversation

sisby-folk
Copy link
Contributor

@sisby-folk sisby-folk commented May 4, 2023

So this was an adventure.

This PR is a bit messy (it includes a merged version of #133) - If you get back and actually want to use this, just let me know what branch to cherry pick and retarget, and I'll get a new PR set up (EMI is only available from 1.18.2 onwards)

So, for starters, as it turns out, createAdvancedRecipeSyncPackets has a flipped sign - it only sends packets that are almost over the size limit. So all client operations requiring advanced recipes haven't been working. Fixed that.

image

That was a hell of a mystery to solve! I added a few client logger operations to help it along.

The plugin itself adds brewing and smithing recipes so far and is very simple - the recipe displays aren't flawless, but they're better than nothing, and a more skilled hand could improve them somewhat I think.

Samples:

javaw_pNUVJUgQit
javaw_Y0ySQ8X2WE

Of course, also fixes TSmithing #3 and TQuilt #8 alongisde #114

@sisby-folk
Copy link
Contributor Author

sisby-folk commented May 4, 2023

There's a weird load order dependent crash on quilt with this, not really sure how to parse it, but the recipe buffers are just complete junk for some reason - https://mclo.gs/hrn0P72

it doesn't always happen, only on specific load orders. NBT crafting loading very early seems to make it pass.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant