diff --git a/build.gradle b/build.gradle index 26951ad..48583d1 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { } } dependencies { - classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT' + classpath 'org.spongepowered:mixingradle:0.7.+' } } @@ -80,11 +80,13 @@ minecraft { } client { + workingDirectory = project.file('run/client') // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { + workingDirectory = project.file('run/server') property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } @@ -126,17 +128,6 @@ repositories { name = 'sponge' url = 'https://repo.spongepowered.org/maven' } - maven { url "https://nexus.vankka.dev/repository/maven-public/" } - maven { url "https://repository.dev.gotan.io/repository/gotan.os/" } - maven { url "https://repo.opencollab.dev/maven-snapshots" } - maven { url "https://repo.opencollab.dev/maven-releases" } - maven { - name = 'sonatype-oss' - url = 'https://oss.sonatype.org/content/repositories/snapshots/' - } - flatDir { - dirs 'libs' - } maven { url "https://cursemaven.com" } } @@ -166,6 +157,12 @@ dependencies { // implementation fg.deobf("curse.maven:curios-309927:4418032") // implementation fg.deobf("curse.maven:autoreglib-250363:3642382") // implementation fg.deobf("curse.maven:sophisticated-backpacks-vault-hunters-edition-696425:4287544") +// implementation fg.deobf("curse.maven:configured-457570:4462832") +// implementation fg.deobf("curse.maven:sophisticated-storage-619320:4736649") +// implementation fg.deobf("curse.maven:cyclops-core-232758:4162660") +// implementation fg.deobf("curse.maven:colossal-chests-237875:3768512") +// implementation fg.deobf("curse.maven:geckolib-388172:4181370") +// implementation fg.deobf("curse.maven:vault-integrations-867003:4641741") } // This block of code expands all declared replace properties in the specified resource targets. diff --git a/gradle.properties b/gradle.properties index 192737d..e069604 100644 --- a/gradle.properties +++ b/gradle.properties @@ -51,6 +51,6 @@ sophisticated_backpacks_version=4637292 # The version of Sophisticated Backpacks Mod storage_network_version=3868680 # The mod version. See https://semver.org/ -mod_version=2.4.0 +mod_version=2.4.1 # The change Log changelog=Initial Release \ No newline at end of file diff --git a/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/utils/SortingHelper.java b/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/utils/SortingHelper.java index 015ade4..22cb052 100644 --- a/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/utils/SortingHelper.java +++ b/src/main/java/lv/id/bonne/vaulthunters/jewelsorting/utils/SortingHelper.java @@ -786,7 +786,7 @@ private static int compareModel(VaultGearData leftData, VaultGearData rightData) private static int compareInstability(CompoundTag leftData, CompoundTag rightData) { return leftData.contains("instability") && rightData.contains("instability") ? - Integer.compare(leftData.getInt("instability"), rightData.getInt("instability")) : + Float.compare(leftData.getFloat("instability"), rightData.getFloat("instability")) : 0; } @@ -998,7 +998,7 @@ private static int getUsedVaults(CompoundTag tag) */ private static String getDollName(CompoundTag tag) { - return tag.contains("playerProfile") && tag.getCompound("playerProfile").contains("Name") ? + return tag != null && tag.contains("playerProfile") && tag.getCompound("playerProfile").contains("Name") ? tag.getCompound("playerProfile").getString("Name") : ""; } @@ -1010,7 +1010,7 @@ private static String getDollName(CompoundTag tag) */ private static float getDollXP(CompoundTag tag) { - return tag.contains("xpPercent") ? tag.getFloat("xpPercent") : 0f; + return tag != null && tag.contains("xpPercent") ? tag.getFloat("xpPercent") : 0f; } @@ -1021,7 +1021,7 @@ private static float getDollXP(CompoundTag tag) */ private static float getDollLoot(CompoundTag tag) { - return tag.contains("lootPercent") ? tag.getFloat("lootPercent") : 0f; + return tag != null && tag.contains("lootPercent") ? tag.getFloat("lootPercent") : 0f; } @@ -1032,7 +1032,7 @@ private static float getDollLoot(CompoundTag tag) */ private static boolean getDollCompletion(CompoundTag tag) { - return tag.contains("vaultUUID"); + return tag != null && tag.contains("vaultUUID"); } diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.ae2.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.ae2.json index 452f859..b492614 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.ae2.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.ae2.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.ae2.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.ae2.AE2IntegrationModConfiguration", diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.qio.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.qio.json index b3fa2ce..8cdf5ef 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.qio.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.qio.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.qio.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.qio.QIOIntegrationModConfiguration", diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.quark.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.quark.json index 6daa215..22d5bf9 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.quark.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.quark.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.quark.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.quark.QuarkIntegrationModConfiguration", diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.rs.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.rs.json index fe11088..3c2e26c 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.rs.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.rs.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.refinedstorage.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.refinedstorage.RefinedStorageIntegrationModConfiguration", diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.sophisticatedcore.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.sophisticatedcore.json index caaa87b..7d6e05f 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.sophisticatedcore.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.sophisticatedcore.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.sophisticatedcore.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.sophisticatedcore.SophisticatedCoreIntegrationModConfiguration", diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.storagenetwork.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.storagenetwork.json index 3b872ea..3df709b 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.storagenetwork.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.storagenetwork.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.storagenetwork.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.storagenetwork.StorageNetworkIntegrationModConfiguration", diff --git a/src/main/resources/mixins.vault_hunters_jewel_sorting.vaulthunters.json b/src/main/resources/mixins.vault_hunters_jewel_sorting.vaulthunters.json index 9f2cb78..8d80b52 100644 --- a/src/main/resources/mixins.vault_hunters_jewel_sorting.vaulthunters.json +++ b/src/main/resources/mixins.vault_hunters_jewel_sorting.vaulthunters.json @@ -1,6 +1,6 @@ { "package": "lv.id.bonne.vaulthunters.jewelsorting.vaulthunters.mixin", - "refmap": "mixins.vaulthunters_jewel_sorting.refmap.json", + "refmap": "mixins.vault_hunters_jewel_sorting.refmap.json", "minVersion": "0.8", "compatibilityLevel": "JAVA_17", "plugin": "lv.id.bonne.vaulthunters.jewelsorting.vaulthunters.VaultHuntersIntegrationModConfiguration",