mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-27 01:11:21 +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;
|
this.customColor = customColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void register() {
|
/**
|
||||||
|
* Register rarity.
|
||||||
|
*/
|
||||||
|
private void register() {
|
||||||
Optional<EnchantmentRarity> matching = REGISTERED.stream().filter(rarity -> rarity.getName().equalsIgnoreCase(name)).findFirst();
|
Optional<EnchantmentRarity> matching = REGISTERED.stream().filter(rarity -> rarity.getName().equalsIgnoreCase(name)).findFirst();
|
||||||
matching.ifPresent(REGISTERED::remove);
|
matching.ifPresent(REGISTERED::remove);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user