
Duplicate attribute modifier UUID causes IllegalArgumentException when applying 'The Sun' tarot card
EightEggs opened this issue ยท 0 comments
Mod version: 1.20-1.7.0
Describe the issue:
When a player uses "The Sun" tarot card, the server crashes with an IllegalArgumentException due to a duplicate attribute modifier UUID. The Tarot Cards mod attempts to apply a modifier with the same UUID multiple times, triggering the error. Especially with other mods (like EnigmaticLegacy, AdditionalAdditions) installed.
Additional info:
Critical Log Snippets:
Caused by: java.lang.IllegalArgumentException: Modifier is already applied on this attribute!
at net.minecraft.world.entity.ai.attributes.AttributeInstance.m_22133_(AttributeInstance.java:73)
...
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661)
// Tarot Cards
[shiroroku.tarotcards.TarotCards]: Adding Tarot Modifier: the_sun - AttributeModifier{
amount=0.25,
operation=MULTIPLY_BASE,
name='Tarot Card',
id=1d6d9271-51a6-3d38-abce-fbe1d65252da
}
This issue is critical as it causes players cannot log in the server. Let me know if more information is needed. Thanks for developing such a great mod!