Archiviert
13
0

Retrieve the correct Nbt base class

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2013-04-02 14:28:34 +02:00
Ursprung fb441b4910
Commit 22beae23e0

Datei anzeigen

@ -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);
} }
} }