oops
This commit is contained in:
parent
e80061e7ba
commit
f4bb2bc8ce
|
@ -39,7 +39,7 @@ public final class NetworkHandler {
|
||||||
} else {
|
} else {
|
||||||
address = "ws://" + address;
|
address = "ws://" + address;
|
||||||
}
|
}
|
||||||
} else {
|
} else if(address.contains("://") && !(address.contains("wss://") || address.contains("ws://"))) {
|
||||||
Minecraft.getMinecraft().setCurrentScreen(new ErrorScreen(":(", "Invalid URI protocol!"));
|
Minecraft.getMinecraft().setCurrentScreen(new ErrorScreen(":(", "Invalid URI protocol!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user