Fix paths unable to be created on Windows
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ public class ClientPluginChannelApi
|
||||
|
||||
private void onCurrentLevelKeyMessage(CurrentLevelKeyMessage msg)
|
||||
{
|
||||
if (!msg.levelKey.matches("^(?=.{1,50}$)([a-zA-Z0-9-_]+@)?[a-zA-Z0-9-_]+(:[a-zA-Z0-9-_]+)?$"))
|
||||
if (!msg.levelKey.matches("^[a-zA-Z0-9-_@]{1,50}$"))
|
||||
{
|
||||
throw new IllegalArgumentException("Server sent invalid level key.");
|
||||
}
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ public interface IServerLevelWrapper extends ILevelWrapper
|
||||
|
||||
if (!levelKeyPrefix.isEmpty())
|
||||
{
|
||||
return levelKeyPrefix + "@" + dimensionName;
|
||||
return levelKeyPrefix + "@" + dimensionName.replace(":", "@@");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user