TypeDataItemStack is not 1.7 compatible either due to annotations loading. Luckily not used in any public plugins for now.

This commit is contained in:
Olof Larsson 2016-05-17 19:18:32 +02:00
parent b402eed4c3
commit de1a28914b
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -237,7 +237,19 @@ public class RegistryType
register(TypeDataPotionEffect.get()); register(TypeDataPotionEffect.get());
register(TypeDataFireworkEffect.get()); register(TypeDataFireworkEffect.get());
// 1.? Compat
// TODO: The annotations breaks with 1.7.
// TODO: Find a solution to dodge the converter annotation class inits.
try
{
register(TypeDataItemStack.get()); register(TypeDataItemStack.get());
}
catch (Throwable t)
{
}
register(TypePermission.get()); register(TypePermission.get());
register(TypePotionEffectType.get()); register(TypePotionEffectType.get());
register(TypePS.get()); register(TypePS.get());