Fix a bug pointed out by Riking.

This commit is contained in:
Olof Larsson 2013-08-12 06:48:12 +02:00
parent df9b10e074
commit faa61345df

View File

@ -62,7 +62,7 @@ public class ChatFormatter
public static boolean unregisterTag(ChatTag tag) public static boolean unregisterTag(ChatTag tag)
{ {
if (tag == null) return false; 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) public static boolean unregisterModifier(ChatModifier modifier)
{ {
if (modifier == null) return false; if (modifier == null) return false;
return idToModifier.remove(modifier) != null; return idToModifier.remove(modifier.getId()) != null;
} }
// -------------------------------------------- // // -------------------------------------------- //