Move init of ActuallyAdditionsClient inside the isClient check

This commit is contained in:
Mrbysco 2024-10-19 18:37:45 +02:00
parent b5cb343492
commit 758001e2fd

View file

@ -94,7 +94,6 @@ public class ActuallyAdditions {
ActuallyBiomeModifiers.init(eventBus); ActuallyBiomeModifiers.init(eventBus);
ActuallyParticles.init(eventBus); ActuallyParticles.init(eventBus);
ActuallyTags.init(); ActuallyTags.init();
ActuallyAdditionsClient.init(eventBus);
eventBus.addListener(this::onConfigReload); eventBus.addListener(this::onConfigReload);
NeoForge.EVENT_BUS.addListener(this::serverStarted); NeoForge.EVENT_BUS.addListener(this::serverStarted);
@ -110,6 +109,7 @@ public class ActuallyAdditions {
eventBus.addListener(this::setup); eventBus.addListener(this::setup);
if (dist.isClient()) { if (dist.isClient()) {
ActuallyAdditionsClient.init(eventBus);
container.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new); container.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);
eventBus.addListener(ActuallyAdditionsClient::setup); eventBus.addListener(ActuallyAdditionsClient::setup);
eventBus.addListener(ActuallyAdditionsClient::setupMenus); eventBus.addListener(ActuallyAdditionsClient::setupMenus);