CraftTweaker

CraftTweaker

151M Downloads

Changing item attribute causes glitch with armor stats

Dyshonored opened this issue ยท 1 comments

commented

Issue description

When crafttweaker script is used to alter the attribute of any weapon item, attribute bonuses of armour items in the player's hotbar are granted despite not having them equipped

Steps to reproduce

Modify the attribute of any weapon with crafttweaker scripts (e.g. attack value)
acquire some armour items in-game
place armour item in hotbar (but not equipping them)
Use mouse wheel to select the armour item in hotbar without equipping them
notice the player armour attribute increases permanently despite not having equipped any of the selected armour item
This persists sometimes even if the player equips and then unequips the previously selected item
Dying resets the armour value to 0 (as players will not respawn with anything), but selecting an armour item in the above manner causes the glitch again

Script used

https://pastebin.com/LnX3djhW

The crafttweaker.log file

https://pastebin.com/2Nf2kFAi

Minecraft version

1.18

Modloader

Forge

Modloader version

40.1.20

CraftTweaker version

9.1.153

Other relevant information

The issue is not present if there are no script altering the attribute value of any in-game item

The latest.log file

https://gist.github.com/Dyshonored/21115f68f750ef7551f864f678870faf

commented

NVM turns out it was another mod's issue altogether, my apologies