public static Dimension getDimension() {
if (mc.world == null) return Dimension.Overworld;
return switch (mc.world.getRegistryKey().getValue().getPath()) {
case "the_nether" -> Dimension.Nether;
case "the_end" -> Dimension.End;
default -> Dimension.Overworld;
};
The PlayerUtils.getDimension() method returns dimension based on the world name, which means that if nether world's name is different than "the_nether", then it would return overworld
Before submitting a suggestion
[X] This feature doesn't already exist in the client. (I have checked every module and their settings on the latest dev build)
[X] This wasn't already suggested. (I have searched suggestions on GitHub and read the FAQ)
Describe the feature
The PlayerUtils.getDimension() method returns dimension based on the world name, which means that if nether world's name is different than "the_nether", then it would return overworld
Before submitting a suggestion
[X] This feature doesn't already exist in the client. (I have checked every module and their settings on the latest dev build)
[X] This wasn't already suggested. (I have searched suggestions on GitHub and read the FAQ)