[1.19.x+?] Partially enforced 25-character limit on ICuriosItemHandler::getCurios
Map
keys
#346
Labels
type: bug
Something isn't working
A user of Lootr is somehow running into this issue when they change their configuration away from default; I assume that some other mod (in their 1.19.2 mod pack) is adding compatibility with Curios.
With the assistance of Spit It Out, they managed to extract this error message:
This appears to be related to
SPacketSyncCurios::78
which specifically reads a 25-long UTF string.However, the previous encode function just writes the key regardless.
This is an issue when mods (specifically Create Goggle) use IMC and pass a key that is longer than 25 characters. Specifically this can be found in their use of IMC to create a slot called
creategoggles.backtank_slot
.This is probably not a common issue as 25 characters is likely not exceeded, and when it is exceeded, no error is actually logged but instead an encoding error with the "got 27, expected 25" error message is displayed, hence why it may not have been reported to you earlier.
While I have specifically flagged this as being for 1.19.2 (as this is where the user encountered the issue and can replicate it), this appears to go as far back as at least 1.16.x for Forge, and extends into 1.20.x, etc.
The text was updated successfully, but these errors were encountered: