Skip to content

Commit

Permalink
- 上传 Logo。
Browse files Browse the repository at this point in the history
- 增加 ConfigAnyTime 依赖。
  • Loading branch information
KasumiNova committed Mar 16, 2024
1 parent abd161d commit 19b1907
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/github/kasuminova/stellarcore/StellarCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

@Mod(modid = StellarCore.MOD_ID, name = StellarCore.MOD_NAME, version = StellarCore.VERSION,
dependencies = "required-after:forge@[14.23.5.2847,);" +
"required-after:theoneprobe@[1.12-1.4.28,);" +
"after:jianghun@[1.0,);",
"required-after:configanytime@[2.0,);",
acceptedMinecraftVersions = "[1.12, 1.13)"
)
@SuppressWarnings("MethodMayBeStatic")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
import com.cleanroommc.configanytime.ConfigAnytime;
import github.kasuminova.stellarcore.StellarCore;
import net.minecraftforge.common.config.Config;
import net.minecraftforge.common.config.ConfigManager;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

@Mod.EventBusSubscriber(modid = StellarCore.MOD_ID)
@Config(modid = StellarCore.MOD_ID, name = "stellar_core")
public class StellarCoreConfig {

Expand All @@ -20,6 +25,15 @@ public class StellarCoreConfig {
@Config.Name("Features")
public static final Features FEATURES = new Features();

@SubscribeEvent
public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event)
{
if (event.getModID().equals(StellarCore.MOD_ID))
{
ConfigManager.sync(StellarCore.MOD_ID, Config.Type.INSTANCE);
}
}

public static class BugFixes {

@Config.Name("Armourers Workshop")
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"Kasumi_Nova"
],
"credits": "",
"logoFile": "",
"logoFile": "assets/stellar_core/textures/logo.png",
"screenshots": [],
"dependencies": [],
"requiredMods": [],
Expand Down

0 comments on commit 19b1907

Please sign in to comment.