Ropes Mod!

Ropes Mod!

5M Downloads

Injection of unnamed loot pool

evhub opened this issue ยท 1 comments

commented

This mod crashes when combined with @Extegral's Enigmatic Legacy due to that mod purposefully crashing when it finds unnamed loot pools, as unnamed loot pools prevent proper loot generation. See this crash report, which locates the issue to com.github.thegoldcrayon.tgcropesmod.EventHandler.onLootLoad (and I have confirmed that the issue goes away when tgcropesmod is removed). I am using tgcropesmod-1.16.2-1.1.0 on forge 1.16.4-35.1.36.

commented

Basically, this line of code:

event.getTable().addPool(LootPool.builder().addEntry(TableLootEntry.builder(newTable)).build());

You should always name LootPools you inject by calling LootPool.Builder#name(String). Set it to whatever, just make sure that whatever is not null. Otherwise you will cause an error state if any other mod attempts to inject to the same table, which in turn leads to no loot being generated from affected loot table.