Made EnchantmentRarity#register private

This commit is contained in:
Auxilor 2021-04-03 18:31:11 +01:00
parent b72046440a
commit ea6521ee9b

View File

@ -79,7 +79,10 @@ public class EnchantmentRarity {
this.customColor = customColor;
}
public void register() {
/**
* Register rarity.
*/
private void register() {
Optional<EnchantmentRarity> matching = REGISTERED.stream().filter(rarity -> rarity.getName().equalsIgnoreCase(name)).findFirst();
matching.ifPresent(REGISTERED::remove);