From 608e17b34cab0575484ec759a451ec20399a9e0e Mon Sep 17 00:00:00 2001 From: Tara Date: Sat, 21 Jan 2023 22:54:57 -0700 Subject: [PATCH] Fix a small little typo --- build.gradle | 3 ++- gradle.properties | 3 ++- settings.gradle | 1 + .../dev/zontreck/libzontreck/items/lore/LoreContainer.java | 3 ++- src/main/resources/META-INF/mods.toml | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 249f92d..14d3d59 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ plugins { id 'eclipse' id 'maven-publish' id 'net.minecraftforge.gradle' version '5.1.+' + id 'org.parchmentmc.librarian.forgegradle' version '1.+' } version = "${myversion}" @@ -26,7 +27,7 @@ minecraft { // // Use non-default mappings at your own risk. They may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. - mappings channel: 'official', version: "${mc_version}" + mappings channel: 'parchment', version: "${parchment_version}-${mc_version}" // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default. diff --git a/gradle.properties b/gradle.properties index 01abbdc..16dbca4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,5 @@ org.gradle.daemon=false mc_version=1.19.2 forge_version=43.2.3 -myversion=1.0.3.3 \ No newline at end of file +myversion=1.0.3.4 +parchment_version=2022.11.27 \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index a55e774..2663da6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,6 +2,7 @@ pluginManagement { repositories { gradlePluginPortal() maven { url = 'https://maven.minecraftforge.net/' } + maven { url = 'https://maven.parchmentmc.org' } // Add this line } } diff --git a/src/main/java/dev/zontreck/libzontreck/items/lore/LoreContainer.java b/src/main/java/dev/zontreck/libzontreck/items/lore/LoreContainer.java index f96ceea..09a03fc 100644 --- a/src/main/java/dev/zontreck/libzontreck/items/lore/LoreContainer.java +++ b/src/main/java/dev/zontreck/libzontreck/items/lore/LoreContainer.java @@ -5,6 +5,7 @@ import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.ListTag; import net.minecraft.nbt.StringTag; import net.minecraft.nbt.Tag; +import net.minecraft.nbt.TagTypes; import net.minecraft.world.item.ItemStack; public class LoreContainer { @@ -35,7 +36,7 @@ public class LoreContainer { ListTag loreEntries = null; if(display!= null) { - loreEntries = display.getList(ItemStack.TAG_LORE, Tag.TAG_COMPOUND); + loreEntries = display.getList(ItemStack.TAG_LORE, Tag.TAG_STRING); if(loreEntries==null) { loreEntryNumber=0; diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index b9b92c0..07f2650 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -19,7 +19,7 @@ modId="libzontreck" #mandatory # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it # ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata # see the associated build.gradle script for how to populate this completely automatically during a build -version="1.0.3.3" #mandatory +version="1.0.3.4" #mandatory # A display name for the mod displayName="LibZontreck" #mandatory # A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/