14 lines
803 B
Diff
14 lines
803 B
Diff
--- a/net/minecraft/world/storage/loot/LootTableManager.java
|
|
+++ b/net/minecraft/world/storage/loot/LootTableManager.java
|
|
@@ -42,8 +42,8 @@
|
|
}
|
|
|
|
p_212853_1_.forEach((p_223385_1_, p_223385_2_) -> {
|
|
- try {
|
|
- LootTable loottable = field_186526_b.fromJson(p_223385_2_, LootTable.class);
|
|
+ try (net.minecraft.resources.IResource res = p_212853_2_.func_199002_a(getPreparedPath(p_223385_1_));){
|
|
+ LootTable loottable = net.minecraftforge.common.ForgeHooks.loadLootTable(field_186526_b, p_223385_1_, p_223385_2_, res == null || !res.func_199026_d().equals("Default"), this);
|
|
builder.put(p_223385_1_, loottable);
|
|
} catch (Exception exception) {
|
|
field_186525_a.error("Couldn't parse loot table {}", p_223385_1_, exception);
|