From 913a458a1acdd2d9258ee5380262bf088934925e Mon Sep 17 00:00:00 2001 From: s809 <43530948+s809@users.noreply.github.com> Date: Sun, 2 Feb 2025 15:38:06 +0500 Subject: [PATCH] Auto-move old save data to new location --- .../common/wrappers/world/DimensionTypeWrapper.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/world/DimensionTypeWrapper.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/world/DimensionTypeWrapper.java index 32b131156..e60c7b986 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/world/DimensionTypeWrapper.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/world/DimensionTypeWrapper.java @@ -63,7 +63,8 @@ public class DimensionTypeWrapper implements IDimensionTypeWrapper } - private String getDimensionName() + @Override + public String getName() { #if MC_VER <= MC_1_16_5 // effectsLocation() is marked as client only, so using the backing field directly @@ -93,7 +94,7 @@ public class DimensionTypeWrapper implements IDimensionTypeWrapper // there's definitely a better way of doing this, but it should work well enough for now @Override - public boolean isTheEnd() { return this.getDimensionName().equalsIgnoreCase("the_end"); } + public boolean isTheEnd() { return this.getName().equalsIgnoreCase("the_end"); } @Override public boolean equals(Object obj) @@ -105,7 +106,7 @@ public class DimensionTypeWrapper implements IDimensionTypeWrapper else { DimensionTypeWrapper other = (DimensionTypeWrapper) obj; - return other.getDimensionName().equals(this.getDimensionName()); + return other.getName().equals(this.getName()); } }