From 36ef45af83a9e8d47757e3925df9eeea0cab9dae Mon Sep 17 00:00:00 2001 From: NotSoDelayed Date: Mon, 1 Jul 2024 10:03:59 +0800 Subject: [PATCH] Fix test --- .../ch/njol/skript/conditions/CondItemEnchantmentGlint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/njol/skript/conditions/CondItemEnchantmentGlint.java b/src/main/java/ch/njol/skript/conditions/CondItemEnchantmentGlint.java index 68ce617f3b9..a69de4d98ff 100644 --- a/src/main/java/ch/njol/skript/conditions/CondItemEnchantmentGlint.java +++ b/src/main/java/ch/njol/skript/conditions/CondItemEnchantmentGlint.java @@ -83,7 +83,7 @@ public boolean check(Event event) { ItemMeta meta = itemType.getItemMeta(); // Pattern 'is forced to glint' if (pattern == 2) { - if (meta.hasEnchantmentGlintOverride()) + if (!meta.hasEnchantmentGlintOverride()) return false; return meta.getEnchantmentGlintOverride(); // Pattern 'has enchantment glint override'