From fbd72e2a377a4711190307eed581b8b1d80e3406 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 24 May 2024 18:36:39 +0200 Subject: Add indent fix script --- fix-indent.sh | 7 +++++++ src/main/resources/META-INF/mods.toml | 21 +++++++++++++++++++++ .../src/main/resources/META-INF/mods.toml | 21 --------------------- 3 files changed, 28 insertions(+), 21 deletions(-) create mode 100755 fix-indent.sh create mode 100644 src/main/resources/META-INF/mods.toml delete mode 100644 versions/1.14.4-forge/src/main/resources/META-INF/mods.toml diff --git a/fix-indent.sh b/fix-indent.sh new file mode 100755 index 0000000..f8a34b7 --- /dev/null +++ b/fix-indent.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Sadly preprocessor likes to insert extra whitespace after a remap +# This removes the space after //$$ which should mean that remaps now +# are fully reversible by selecting the original project and running +# this script. + +find src/main/ -type f -exec sed -i -e 's|//\$\$ |//$$|g' {} + diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml new file mode 100644 index 0000000..41b3d45 --- /dev/null +++ b/src/main/resources/META-INF/mods.toml @@ -0,0 +1,21 @@ +modLoader = "javafml" +loaderVersion = "[28,)" +[[mods]] +modId = "ultranotifier" +version = "${version}" +displayName = "${modName}" +description = "${description}" + +[[dependencies.ultranotifier]] +modId="forge" +mandatory=true +versionRange="[28,)" +ordering="NONE" +side="BOTH" + +[[dependencies.ultranotifier]] +modId="minecraft" +mandatory=true +versionRange="[${mcVersion}]" +ordering="NONE" +side="BOTH" \ No newline at end of file diff --git a/versions/1.14.4-forge/src/main/resources/META-INF/mods.toml b/versions/1.14.4-forge/src/main/resources/META-INF/mods.toml deleted file mode 100644 index 41b3d45..0000000 --- a/versions/1.14.4-forge/src/main/resources/META-INF/mods.toml +++ /dev/null @@ -1,21 +0,0 @@ -modLoader = "javafml" -loaderVersion = "[28,)" -[[mods]] -modId = "ultranotifier" -version = "${version}" -displayName = "${modName}" -description = "${description}" - -[[dependencies.ultranotifier]] -modId="forge" -mandatory=true -versionRange="[28,)" -ordering="NONE" -side="BOTH" - -[[dependencies.ultranotifier]] -modId="minecraft" -mandatory=true -versionRange="[${mcVersion}]" -ordering="NONE" -side="BOTH" \ No newline at end of file -- cgit