Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed May 21, 2024
1 parent 974e0c9 commit b902e96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/main/java/net/zepalesque/zenith/Zenith.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Zenith(IEventBus modEventBus, Dist dist) {

modEventBus.addListener(this::commonSetup);

NeoForge.EVENT_BUS.register(this);
// NeoForge.EVENT_BUS.register(this);

if (DIRECTORY.toFile().mkdirs())
LOGGER.info("Created folder for Zenith config");
Expand All @@ -43,11 +43,6 @@ private void commonSetup(final FMLCommonSetupEvent event) {

}

@SubscribeEvent
public void onServerStarting(ServerStartingEvent event) {

}

@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
public static class ClientModEvents {

Expand Down
7 changes: 1 addition & 6 deletions src/main/java/net/zepalesque/zenith/config/ZConfig.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package net.zepalesque.zenith.config;

import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.ModConfigSpec;
import net.zepalesque.zenith.Zenith;
import org.apache.commons.lang3.tuple.Pair;
import net.neoforged.neoforge.common.ModConfigSpec.ConfigValue;
import org.apache.commons.lang3.tuple.Pair;

@Mod.EventBusSubscriber(modid = Zenith.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ZConfig {

public static class Common {
Expand All @@ -22,7 +19,6 @@ public Common(ModConfigSpec.Builder builder) {
}
}


public static final ModConfigSpec COMMON_SPEC;
public static final Common COMMON;

Expand All @@ -31,5 +27,4 @@ public Common(ModConfigSpec.Builder builder) {
COMMON_SPEC = commonSpecPair.getRight();
COMMON = commonSpecPair.getLeft();
}

}
3 changes: 3 additions & 0 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ displayURL = "https://github.com/Zepalesque/Zenith"
logoFile = "zenith.png"
authors = "Zepalesque"
description = '''
Zenith is a library designed to simplify a variety of tedious processes in a way that is dynamic and easily expandable, along with adding useful APIs that can be used for mods.
The main reason the mod exists is for the Aether: Redux, but it may be used in the future, and may be useful as well.
'''
[[dependencies.zenith]] #optional
modId="neoforge" #mandatory
Expand Down

0 comments on commit b902e96

Please sign in to comment.