Latest Lithium version breaks Clientcommands enchantment manipulation
DragonEggBedrockBreaking opened this issue · 8 comments
Version Information
lithium-fabric-mc1.17.1-0.7.5.jar
Expected Behavior
Clientcommands’ /cenchant command works.
Actual Behavior
Clientcommands’ /cenchant command does not work - it tells you the info on how many bookshelves you need, and which slot the enchantment will be in, but after enchanting, you do not get the enchantment you tried to get.
Reproduction Steps
- Install the latest versions of fabric and Earthcomputer/clientcommands.
- Try to do enchantment manipulation.
- Notice that it works.
- Install lithium as well.
- Notice that enchantment manipulation does not work.
Other Information
Clientcommands issue reports: /Earthcomputer/clientcommands/issues/327
/Earthcomputer/clientcommands/issues/336
Lithium does not keep parity with the number or order of RNG calls. Not sure whether this is a won't fix
but I can probably create a list of optimizations that should be disabled when relying on internal RNG state
@DragonEggBedrockBreaking Are you absolutely sure that mixin.ai.nearby_entity_tracking=false
fixes it AND mixin.ai.nearby_entity_tracking=true
breaks it again?
A lot of things can alter the player RNG:
- Item dropping (which is what it used to manipulate the value)
- Any sounds playing from the player
- Any particles spawning from the player
- Shoulder-mounted entities (parrots)
- Damage taken (thorns, knockback resist)
I am not able to replicate this issue. Does it require you to be on a server, I'm going to guess that it requires entities
@DragonEggBedrockBreaking Are you absolutely sure that
mixin.ai.nearby_entity_tracking=false
fixes it ANDmixin.ai.nearby_entity_tracking=true
breaks it again?A lot of things can alter the player RNG:
- Item dropping (which is what it used to manipulate the value)
- Any sounds playing from the player
- Any particles spawning from the player
- Shoulder-mounted entities (parrots)
- Damage taken (thorns, knockback resist)
Yes