TypeDataBannerPattern is not 1.7 compatible.
This commit is contained in:
parent
fddb33ff9f
commit
b402eed4c3
@ -162,7 +162,10 @@ public class RegistryType
|
|||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// DEFAULTS
|
// DEFAULTS
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
// NOTE: As of 2016-05-17 about 15% of all servers are still using 1.7.x.
|
||||||
|
// With this in mind there are some try catch clauses.
|
||||||
|
// We catch NoClassDefFoundError and silently move along on those servers.
|
||||||
|
|
||||||
public static void registerAll()
|
public static void registerAll()
|
||||||
{
|
{
|
||||||
// Primitive
|
// Primitive
|
||||||
@ -203,8 +206,7 @@ public class RegistryType
|
|||||||
register(TypeOcelotType.get());
|
register(TypeOcelotType.get());
|
||||||
register(TypeParticleEffect.get());
|
register(TypeParticleEffect.get());
|
||||||
|
|
||||||
// About 15% of all servers are still using 1.7.x.
|
// 1.7 Compat
|
||||||
// We catch NoClassDefFoundError and silently move along on those servers.
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
register(TypeRabbitType.get());
|
register(TypeRabbitType.get());
|
||||||
@ -222,7 +224,17 @@ public class RegistryType
|
|||||||
// Bukkit
|
// Bukkit
|
||||||
register(TypeDestination.get());
|
register(TypeDestination.get());
|
||||||
register(TypeItemStack.get());
|
register(TypeItemStack.get());
|
||||||
register(TypeDataBannerPattern.get());
|
|
||||||
|
// 1.7 Compat
|
||||||
|
try
|
||||||
|
{
|
||||||
|
register(TypeDataBannerPattern.get());
|
||||||
|
}
|
||||||
|
catch (Throwable t)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
register(TypeDataPotionEffect.get());
|
register(TypeDataPotionEffect.get());
|
||||||
register(TypeDataFireworkEffect.get());
|
register(TypeDataFireworkEffect.get());
|
||||||
register(TypeDataItemStack.get());
|
register(TypeDataItemStack.get());
|
||||||
|
Loading…
Reference in New Issue
Block a user