mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-10-30 06:10:51 +01:00
Move init of ActuallyAdditionsClient inside the isClient check
This commit is contained in:
parent
b5cb343492
commit
758001e2fd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue