Fix reloading event firing during server shutdown and add explicit unloading event instead (#9016)

This commit is contained in:
cpw authored and GitHub committed 2023-02-06 13:30:16 -08:00
1 parent 57fd0ecb2e
commit 50f325c8fe
5 files changed
+42 -4

No files matched your search

@@ -38,6 +38,6 @@ public class ForgeBindings implements IBindingsProvider {
@Override
public Supplier<IConfigEvent.ConfigConfig> getConfigConfiguration() {
return ()->new IConfigEvent.ConfigConfig(ModConfigEvent.Loading::new, ModConfigEvent.Reloading::new);
return ()->new IConfigEvent.ConfigConfig(ModConfigEvent.Loading::new, ModConfigEvent.Reloading::new, ModConfigEvent.Unloading::new);
}
}