Fix a crash in obtaining the file safe dimname
This commit is contained in:
parent
83a2bff15b
commit
5fe283f745
3 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue