From faa61345dfbcf52cd2c9ea177128957180142061 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 12 Aug 2013 06:48:12 +0200 Subject: [PATCH] Fix a bug pointed out by Riking. --- src/com/massivecraft/factions/chat/ChatFormatter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/chat/ChatFormatter.java b/src/com/massivecraft/factions/chat/ChatFormatter.java index 6e6789bb..b473ba77 100644 --- a/src/com/massivecraft/factions/chat/ChatFormatter.java +++ b/src/com/massivecraft/factions/chat/ChatFormatter.java @@ -62,7 +62,7 @@ public class ChatFormatter public static boolean unregisterTag(ChatTag tag) { if (tag == null) return false; - return idToTag.remove(tag) != null; + return idToTag.remove(tag.getId()) != null; } // -------------------------------------------- // @@ -95,7 +95,7 @@ public class ChatFormatter public static boolean unregisterModifier(ChatModifier modifier) { if (modifier == null) return false; - return idToModifier.remove(modifier) != null; + return idToModifier.remove(modifier.getId()) != null; } // -------------------------------------------- //