forked from git-mirrors/GeyserConnect
Fix crash bug when spaces are entered in the address of a server
This commit is contained in:
parent
f5a93e8b11
commit
12028268c6
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class Server {
|
|||
}
|
||||
|
||||
public Server(String address, int port, boolean online, boolean bedrock, String name, String imageUrl) {
|
||||
this(address, port, online, bedrock, name, imageUrl, ServerCategory.CUSTOM);
|
||||
this(address.replaceAll(" ", ""), port, online, bedrock, name, imageUrl, ServerCategory.CUSTOM);
|
||||
}
|
||||
|
||||
private int defaultPort() { return bedrock ? 19132 : 25565; }
|
||||
|
|
Loading…
Add table
Reference in a new issue