From de1a28914bc019b4d46498a370e39a74ea61bc4c Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 17 May 2016 19:18:32 +0200 Subject: [PATCH] TypeDataItemStack is not 1.7 compatible either due to annotations loading. Luckily not used in any public plugins for now. --- .../massivecore/command/type/RegistryType.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/massivecore/command/type/RegistryType.java b/src/com/massivecraft/massivecore/command/type/RegistryType.java index 4c0b8221..fb8c13e9 100644 --- a/src/com/massivecraft/massivecore/command/type/RegistryType.java +++ b/src/com/massivecraft/massivecore/command/type/RegistryType.java @@ -237,7 +237,19 @@ public class RegistryType register(TypeDataPotionEffect.get()); register(TypeDataFireworkEffect.get()); - register(TypeDataItemStack.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()); + } + catch (Throwable t) + { + + } + register(TypePermission.get()); register(TypePotionEffectType.get()); register(TypePS.get());