Added more constructors to EcoEnchant.EnchantmentType

This commit is contained in:
Auxilor
2020-12-12 12:48:24 +00:00
parent e30f70eab5
commit 024f414f57

View File

@@ -78,7 +78,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Regist
Bukkit.getPluginManager().addPermission(permission);
}
if(type.getRequiredToExtend() != null && type.getRequiredToExtend().isInstance(this)) {
if(type.getRequiredToExtend() != null && !type.getRequiredToExtend().isInstance(this)) {
Logger.error("Enchantment " + key + " has type " + this.getType().getName() + " but doesn't extend " + type.getRequiredToExtend().getName());
return;
}