From 1e7a197f7a0a02e11c624af00bb1a626e15a830e Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Oct 2019 20:35:42 +1100 Subject: [PATCH] Fix incorrect inequality in 683bae0670c Thanks Brokkoli & Phoenix616 for pointing out --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java index b2bf896ad1..a96df7718e 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -675,7 +675,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta { NBTTagList tagList = new NBTTagList(); for (IChatBaseComponent value : list) { // SPIGOT-5342 - horrible hack as 0 version does not go through the Mojang updater - tagList.add(new NBTTagString(0 <= version || version >= 1803 ? CraftChatMessage.toJSON(value) : CraftChatMessage.fromComponent(value, EnumChatFormat.DARK_PURPLE))); // SPIGOT-4935 + tagList.add(new NBTTagString(version <= 0 || version >= 1803 ? CraftChatMessage.toJSON(value) : CraftChatMessage.fromComponent(value, EnumChatFormat.DARK_PURPLE))); // SPIGOT-4935 } return tagList;