From fa99978d2e921f7f853240aa185bdb1436078eaa Mon Sep 17 00:00:00 2001 From: Brennan Ward <3682588+Shadows-of-Fire@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:59:38 -0700 Subject: [PATCH] Update references to neoforge.mods.toml --- build.gradle | 2 +- src/main/java/com/example/examplemod/Config.java | 2 +- src/main/java/com/example/examplemod/ExampleMod.java | 2 +- src/main/resources/META-INF/{mods.toml => neoforge.mods.toml} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/main/resources/META-INF/{mods.toml => neoforge.mods.toml} (98%) diff --git a/build.gradle b/build.gradle index c25acb4..f2aef11 100644 --- a/build.gradle +++ b/build.gradle @@ -132,7 +132,7 @@ tasks.withType(ProcessResources).configureEach { ] inputs.properties replaceProperties - filesMatching(['META-INF/mods.toml']) { + filesMatching(['META-INF/neoforge.mods.toml']) { expand replaceProperties } } diff --git a/src/main/java/com/example/examplemod/Config.java b/src/main/java/com/example/examplemod/Config.java index b96d525..7f5aa8b 100644 --- a/src/main/java/com/example/examplemod/Config.java +++ b/src/main/java/com/example/examplemod/Config.java @@ -13,7 +13,7 @@ import net.neoforged.fml.event.config.ModConfigEvent; import net.neoforged.neoforge.common.ModConfigSpec; // An example config class. This is not required, but it's a good idea to have one to keep your config organized. -// Demonstrates how to use Forge's config APIs +// Demonstrates how to use Neo's config APIs @EventBusSubscriber(modid = ExampleMod.MODID, bus = EventBusSubscriber.Bus.MOD) public class Config { diff --git a/src/main/java/com/example/examplemod/ExampleMod.java b/src/main/java/com/example/examplemod/ExampleMod.java index 259b3da..835a48d 100644 --- a/src/main/java/com/example/examplemod/ExampleMod.java +++ b/src/main/java/com/example/examplemod/ExampleMod.java @@ -34,7 +34,7 @@ import net.neoforged.neoforge.registries.DeferredHolder; import net.neoforged.neoforge.registries.DeferredItem; import net.neoforged.neoforge.registries.DeferredRegister; -// The value here should match an entry in the META-INF/mods.toml file +// The value here should match an entry in the META-INF/neoforge.mods.toml file @Mod(ExampleMod.MODID) public class ExampleMod { diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/neoforge.mods.toml similarity index 98% rename from src/main/resources/META-INF/mods.toml rename to src/main/resources/META-INF/neoforge.mods.toml index 587cef0..49ba37c 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/neoforge.mods.toml @@ -1,4 +1,4 @@ -# This is an example mods.toml file. It contains the data relating to the loading mods. +# This is an example neoforge.mods.toml file. It contains the data relating to the loading mods. # There are several mandatory fields (#mandatory), and many more that are optional (#optional). # The overall format is standard TOML format, v0.5.0. # Note that there are a couple of TOML lists in this file.