mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-18 00:05:17 +01:00
Fix a bug pointed out by Riking.
This commit is contained in:
parent
df9b10e074
commit
faa61345df
@ -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;
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
|
Loading…
Reference in New Issue
Block a user