diff --git a/gradle.properties b/gradle.properties index 9778c45..01abbdc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ org.gradle.daemon=false mc_version=1.19.2 forge_version=43.2.3 -myversion=1.0.3.2 \ No newline at end of file +myversion=1.0.3.3 \ No newline at end of file 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 556430f..f96ceea 100644 --- a/src/main/java/dev/zontreck/libzontreck/items/lore/LoreContainer.java +++ b/src/main/java/dev/zontreck/libzontreck/items/lore/LoreContainer.java @@ -21,6 +21,11 @@ public class LoreContainer { this.associatedItem = associated; } + public void save(CompoundTag tag) + { + tag.putInt("pos", loreEntryNumber); + miscData.save(tag); + } public LoreContainer(ItemStack stack) { @@ -66,7 +71,7 @@ public class LoreContainer { tag.put(ItemStack.TAG_DISPLAY, display); associatedItem.setTag(tag); - + } private void SetOrUpdateIndex(ListTag lst, int pos, Tag insert) diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 5776388..b9b92c0 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.2" #mandatory +version="1.0.3.3" #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/