https://discord.gg/2NY3a3AJ8e Minecraft mod that enhances the game's Heads-Up Display (HUD) by introducing customizable elements and features to display information.
MIT License
4
stars
1
forks
source link
Status Effects Timer Resets at Random to Max Value #38
In my investigation, I found the problem: the init function is called in 600 ticks chunks, so if the effect is greater than 600 ticks, say 800 ticks, it will be called twice, once at 800, once at 600. It will do chunks infinitely; for example, 1800 will be called at 1200 and 600 ticks.
Issue fixing it is difficult, as I would need to track effects only for the player entity, so a bunch of source code browsing for new mixin locations.
In my investigation, I found the problem: the init function is called in 600 ticks chunks, so if the effect is greater than 600 ticks, say 800 ticks, it will be called twice, once at 800, once at 600. It will do chunks infinitely; for example, 1800 will be called at 1200 and 600 ticks.
Issue fixing it is difficult, as I would need to track effects only for the player entity, so a bunch of source code browsing for new mixin locations.