Skip to content

Commit

Permalink
3.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Aug 19, 2023
1 parent e853c7c commit 05c4f46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -54,9 +55,10 @@ public int getIntId(ResourceKey<Level> 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) {
Expand Down

0 comments on commit 05c4f46

Please sign in to comment.