mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Fixed net errors not being displayed properly
This commit is contained in:
parent
53bf622065
commit
ece3f96867
@ -263,7 +263,7 @@ text.mapeditor = Map Editor
|
||||
text.donate = Donate
|
||||
|
||||
text.connectfail = [crimson]Failed to connect to server\:\n\n[accent]{0}
|
||||
text.error.unreachable = Server unreachable.
|
||||
text.error.unreachable = Server unreachable.\nIs the address spelled correctly?
|
||||
text.error.invalidaddress = Invalid address.
|
||||
text.error.timedout = Timed out!\nMake sure the host has port forwarding set up, and that the address is correct!
|
||||
text.error.mismatch = Packet error:\npossible client/server version mismatch.\nMake sure you and the host have the latest version of Mindustry!
|
||||
|
@ -59,7 +59,7 @@ public class Net{
|
||||
}
|
||||
|
||||
String error = t.getMessage() == null ? "" : t.getMessage().toLowerCase();
|
||||
String type = error.getClass().toString().toLowerCase();
|
||||
String type = t.getClass().toString().toLowerCase();
|
||||
|
||||
if(error.equals("mismatch")){
|
||||
error = Bundles.get("text.error.mismatch");
|
||||
|
Loading…
Reference in New Issue
Block a user