Mine and Slash

Mine and Slash

3M Downloads

[Bug]: buff continue to stack

Oscar0159 opened this issue · 6 comments

commented

Describe the bug you're experiencing

I upgraded my version from 1.20.1-v5.6.5 to 1.20.1-v5.7.3 and discovered this bug. I have not tested versions v5.7.0 to v5.7.2.

When a player swaps hands with an item (not an empty item) or runs, the buffs continue to stack, causing the magic shield, damage, resistance, etc., to reach very high values or their maximum limits.

image
image

Reproducability

Quickly switch the player’s hand item using the scroll wheel or hotkeys.

Mod up to date

  • Before submitting this issue I updated to the newest version and reproduced it

Tested Without Custom Mine and Slash Datapacks

  • In case I used Mine and Slash datapacks, I ran Mine and Slash in a new instance without custom datapacks and confirmed the bug still exists

Mine and Slash version

1.20.1-v5.7.3

Logs

https://gist.github.com/Oscar0159/303baf017cfba68773b3f128d3a31c77

commented

Can you confirm the bug is fixed?

commented

I'll drop a jar in #general , try if the bug still happens

commented

Hm i can't reproduce this one right now, are you on the mine and slash discord?

commented

yes

commented

Well found the reason, should be fixed next update ad31a61

The old system always produced new statcontexts on every gear calculation, so editing them was fine. New system caches them.. so editing is not good

commented

bug fixed