Fix a crash in obtaining the file safe dimname

This commit is contained in:
Tara 2023-01-07 18:10:48 -07:00
parent 83a2bff15b
commit 5fe283f745
3 changed files with 6 additions and 2 deletions

View file

@ -49,6 +49,10 @@ public class WorldPosition
ServerLevel lvl = getActualDimension();
DimSafe = lvl.dimension().location().getNamespace() + "-" + lvl.dimension().location().getPath();
}
public static String getDimSafe(ServerLevel lvl)
{
return lvl.dimension().location().getNamespace() + "-" + lvl.dimension().location().getPath();
}
@Override
public String toString()