Open TheIllusiveC4 opened 2 years ago
Using a mod that adds loot using a GLM, the loot should only be added once.
Using a mod that adds loot using a GLM, the loot is doubled.
/champions summon spider 1
I believe the problem lies here: https://github.com/SilentChaos512/Treasure-Bags/blob/f3c45078e61cb2cda8c3f11d1b42179621eff577/src/main/java/net/silentchaos512/treasurebags/events/EventHandler.java#L64 Global Loot Modifiers have already been processed before the LivingDropsEvent fires. Calling lootTable.getRandomItems(context) will cause all Global Loot Modifiers to fire again for the same collection of drops.
LivingDropsEvent
lootTable.getRandomItems(context)
Has there been any new information regarding this issue? It's still a problem in 1.20.1 and causing all of my custom CraftTweaker scripts to drop much more than intended.
Versions
Expected behavior
Using a mod that adds loot using a GLM, the loot should only be added once.
Actual behaviour
Using a mod that adds loot using a GLM, the loot is doubled.
Steps to reproduce the problem
/champions summon spider 1
.I believe the problem lies here: https://github.com/SilentChaos512/Treasure-Bags/blob/f3c45078e61cb2cda8c3f11d1b42179621eff577/src/main/java/net/silentchaos512/treasurebags/events/EventHandler.java#L64 Global Loot Modifiers have already been processed before the
LivingDropsEvent
fires. CallinglootTable.getRandomItems(context)
will cause all Global Loot Modifiers to fire again for the same collection of drops.