Files
Minecraft1.12SRC/conf/patches/minecraft_ff/net.minecraft.world.storage.loot.functions.LootFunctionManager.java.patch
2020-07-20 00:21:55 +08:00

13 lines
894 B
Diff

diff -r -U 3 minecraft\net\minecraft\world\storage\loot\functions\LootFunctionManager.java minecraft_patched\net\minecraft\world\storage\loot\functions\LootFunctionManager.java
--- minecraft\net\minecraft\world\storage\loot\functions\LootFunctionManager.java
+++ minecraft_patched\net\minecraft\world\storage\loot\functions\LootFunctionManager.java
@@ -21,7 +21,7 @@
public static <T extends LootFunction> void func_186582_a(LootFunction.Serializer<? extends T> p_186582_0_) {
ResourceLocation resourcelocation = p_186582_0_.func_186529_a();
- Class<T> oclass = p_186582_0_.func_186531_b();
+ Class<T> oclass = (Class<T>)p_186582_0_.func_186531_b();
if (field_186584_a.containsKey(resourcelocation)) {
throw new IllegalArgumentException("Can't re-register item function name " + resourcelocation);
} else if (field_186585_b.containsKey(oclass)) {