diff --git a/gradle.properties b/gradle.properties index a5134cb64..c11f86c78 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx2G org.gradle.parallel=false # Mod Properties -mod_version=3.2.5 +mod_version=3.2.6 maven_group=qouteall archives_base_name=immersive-portals diff --git a/q_misc_util/src/main/java/qouteall/q_misc_util/dimension/DimensionIdRecord.java b/q_misc_util/src/main/java/qouteall/q_misc_util/dimension/DimensionIdRecord.java index ba1ef8f0a..fa15d2a5c 100644 --- a/q_misc_util/src/main/java/qouteall/q_misc_util/dimension/DimensionIdRecord.java +++ b/q_misc_util/src/main/java/qouteall/q_misc_util/dimension/DimensionIdRecord.java @@ -8,6 +8,7 @@ import net.minecraft.world.level.Level; import org.jetbrains.annotations.Nullable; +import java.util.Comparator; import java.util.HashSet; import java.util.Set; import java.util.function.Predicate; @@ -54,9 +55,10 @@ public int getIntId(ResourceKey dim) { @Override public String toString() { - return idMap.entrySet().stream().map( - e -> e.getKey().location().toString() + " -> " + e.getValue() - ).collect(Collectors.joining("\n")); + return idMap.entrySet().stream() + .sorted(Comparator.comparingInt(e -> e.getValue())) + .map(e -> e.getKey().location().toString() + " -> " + e.getValue()) + .collect(Collectors.joining("\n")); } public static DimensionIdRecord tagToRecord(CompoundTag tag) {