From c5f7cfe6ee22fac28c1622816bc4c49cc28777e7 Mon Sep 17 00:00:00 2001 From: cpw Date: Sat, 16 Feb 2019 17:42:30 -0500 Subject: Fix author and other strings in the mdk mods toml file, update coremods to 0.3.+ Signed-off-by: cpw --- src/main/java/com/example/examplemod/ExampleMod.java | 2 +- src/main/resources/META-INF/mods.toml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/main/java/com/example/examplemod/ExampleMod.java b/src/main/java/com/example/examplemod/ExampleMod.java index d0fa6c8..2f904b1 100644 --- a/src/main/java/com/example/examplemod/ExampleMod.java +++ b/src/main/java/com/example/examplemod/ExampleMod.java @@ -60,7 +60,7 @@ public class ExampleMod private void processIMC(final InterModProcessEvent event) { // some example code to receive and process InterModComms from other mods - LOGGER.info("Got IMC", event.getIMCStream(). + LOGGER.info("Got IMC {}", event.getIMCStream(). map(m->m.getMessageSupplier().get()). collect(Collectors.toList())); } diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 7ce23d4..e87f17a 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -9,14 +9,6 @@ modLoader="javafml" #mandatory loaderVersion="[25,)" #mandatory (24 is current forge version) # A URL to refer people to when problems occur with this mod issueTrackerURL="http://my.issue.tracker/" #optional -# A URL for the "homepage" for this mod, displayed in the mod UI -displayURL="http://example.com/" #optional -# A file name (in the root of the mod JAR) containing a logo for display -logoFile="examplemod.png" #optional -# A text field displayed in the mod UI -credits="Thanks for this example mod goes to Java" #optional -# A text field displayed in the mod UI -authors="Love, Cheese and small house plants" #optional # A list of mods - how many allowed here is determined by the individual mod loader [[mods]] #mandatory # The modid of the mod @@ -27,6 +19,14 @@ version="${file.jarVersion}" #mandatory displayName="Example Mod" #mandatory # A URL to query for updates for this mod. See the JSON update specification updateJSONURL="http://myurl.me/" #optional +# A URL for the "homepage" for this mod, displayed in the mod UI +displayURL="http://example.com/" #optional +# A file name (in the root of the mod JAR) containing a logo for display +logoFile="examplemod.png" #optional +# A text field displayed in the mod UI +credits="Thanks for this example mod goes to Java" #optional +# A text field displayed in the mod UI +authors="Love, Cheese and small house plants" #optional # The description text for the mod (multi line!) (#mandatory) description=''' This is a long form description of the mod. You can write whatever you want here -- cgit v1.2.3