Retrieve the correct Nbt base class
Dieser Commit ist enthalten in:
Ursprung
fb441b4910
Commit
22beae23e0
@ -852,9 +852,15 @@ public class MinecraftReflection {
|
|||||||
returnTypeMatches(tagCompoundContract).
|
returnTypeMatches(tagCompoundContract).
|
||||||
build()
|
build()
|
||||||
);
|
);
|
||||||
|
Class<?> nbtBase = selected.getReturnType().getSuperclass();
|
||||||
|
|
||||||
|
// That can't be correct
|
||||||
|
if (nbtBase == null || nbtBase.equals(Object.class)) {
|
||||||
|
throw new IllegalStateException("Unable to find NBT base class: " + nbtBase);
|
||||||
|
}
|
||||||
|
|
||||||
// Use the return type here too
|
// Use the return type here too
|
||||||
return setMinecraftClass("NBTBase", selected.getReturnType());
|
return setMinecraftClass("NBTBase", nbtBase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren