mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-26 01:01:22 +01:00
Made EnchantmentRarity#register private
This commit is contained in:
parent
b72046440a
commit
ea6521ee9b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user