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
|
@ -5,4 +5,4 @@ org.gradle.daemon=false
|
|||
|
||||
mc_version=1.19.2
|
||||
forge_version=43.2.3
|
||||
myversion=1.0.2.2
|
||||
myversion=1.0.2.3
|
|
@ -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()
|
||||
|
|
|
@ -19,7 +19,7 @@ modId="libzontreck" #mandatory
|
|||
# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
|
||||
# ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata
|
||||
# see the associated build.gradle script for how to populate this completely automatically during a build
|
||||
version="1.0.2.2" #mandatory
|
||||
version="1.0.2.3" #mandatory
|
||||
# A display name for the mod
|
||||
displayName="LibZontreck" #mandatory
|
||||
# A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/
|
||||
|
|
Reference in a new issue