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) {
|
public PeriodImplementation(@NotNull ExcellentEnchant enchant, @NotNull EnchantScaler triggerInterval) {
|
||||||
this.triggerInterval = triggerInterval;
|
this.triggerInterval = triggerInterval;
|
||||||
|
this.updateTriggerTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@ -178,7 +178,9 @@ public class EnchantRegistry extends AbstractManager<ExcellentEnchants> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onShutdown() {
|
protected void onShutdown() {
|
||||||
ENCHANTS_MAP.clear();
|
if (!isLocked) {
|
||||||
|
ENCHANTS_MAP.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public <T extends IEnchantment> void registerType(@NotNull Class<T> enchantClass) {
|
public <T extends IEnchantment> void registerType(@NotNull Class<T> enchantClass) {
|
||||||
|
Loading…
Reference in New Issue
Block a user