View Issue Details

IDProjectCategoryView StatusLast Update
0002433Industrial-Craft²crossmod-compatibility / submodules / APIpublic2018-10-24 21:45
ReporterDaomephstaAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0002433: Injected IC2 loot is unmodifiable
DescriptionAll loot pools injected into loot tables cannot be modified. This occurs because the loot table returned from LootTableManager#getLootTableFromLocation() will always be frozen, as will its loot pools. This means mods like LootTweaker (https://minecraft.curseforge.com/projects/loottweaker) are unable to modify the injected loot.

Botania avoids the issue by using LootTableEntry to reference its inject tables (https://github.com/Vazkii/Botania/blob/master/src/main/java/vazkii/botania/common/core/loot/LootHandler.java), instead of calling LootTableManager#getLootTableFromLocation(). Alternatively the pools could be copied before adding them, as the copies would not be frozen. The latter solution does require some reflection though.
 
TagsNo tags attached.
Minecraft Version1.12.2

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-10-23 00:19 Daomephsta New Issue
2018-10-24 21:45 Chocohead Status new => acknowledged