attribute mechanic not working as intended ?
Summary
So, whenever I use the attribute mechanic to add attack speed, for example, if I disconnect with the buff to my attack speed, it stays forever.
Steps to reproduce
1- Create an enchantement that uses the attribute mechanic, like so :
FAST:
Display: '§9Fast'
MinLevel: 1
MaxLevel: 3
ItemType: WEAPON
ValidSlots:
- HAND
Options:
ShowInLore: FALSE
LevelAsPower: FALSE
Skills:
- attribute{attribute=GENERIC_ATTACK_SPEED;a='4+0.2*<skill.var.enchant-level>';duration=10} @self ~onTimer:10
2- Give yourself a sword with the enchant on it.
3- Disconnect while holding it. When you log back, the modified attribute is now the base attribute of the player (I checked with /attribute username minecraft:generic.attack_speed base get)