Fixed net errors not being displayed properly
This commit is contained in:
@@ -263,7 +263,7 @@ text.mapeditor = Map Editor
|
|||||||
text.donate = Donate
|
text.donate = Donate
|
||||||
|
|
||||||
text.connectfail = [crimson]Failed to connect to server\:\n\n[accent]{0}
|
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.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.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!
|
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 error = t.getMessage() == null ? "" : t.getMessage().toLowerCase();
|
||||||
String type = error.getClass().toString().toLowerCase();
|
String type = t.getClass().toString().toLowerCase();
|
||||||
|
|
||||||
if(error.equals("mismatch")){
|
if(error.equals("mismatch")){
|
||||||
error = Bundles.get("text.error.mismatch");
|
error = Bundles.get("text.error.mismatch");
|
||||||
|
|||||||
Reference in New Issue
Block a user