mirror of
https://github.com/nulli0n/ExcellentEnchants-spigot.git
synced 2024-11-22 11:35:18 +01:00
EnchantRegistry fix
This commit is contained in:
parent
938d15c2f4
commit
962dc81bec
@ -13,6 +13,7 @@ public class PeriodImplementation implements Periodic {
|
||||
|
||||
public PeriodImplementation(@NotNull ExcellentEnchant enchant, @NotNull EnchantScaler triggerInterval) {
|
||||
this.triggerInterval = triggerInterval;
|
||||
this.updateTriggerTime();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
@ -178,7 +178,9 @@ public class EnchantRegistry extends AbstractManager<ExcellentEnchants> {
|
||||
|
||||
@Override
|
||||
protected void onShutdown() {
|
||||
ENCHANTS_MAP.clear();
|
||||
if (!isLocked) {
|
||||
ENCHANTS_MAP.clear();
|
||||
}
|
||||
}
|
||||
|
||||
public <T extends IEnchantment> void registerType(@NotNull Class<T> enchantClass) {
|
||||
|
Loading…
Reference in New Issue
Block a user