diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index d4d20529e8..0bb62bbc96 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -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! diff --git a/core/src/io/anuke/mindustry/net/Net.java b/core/src/io/anuke/mindustry/net/Net.java index 78941f012f..4bd10f57fd 100644 --- a/core/src/io/anuke/mindustry/net/Net.java +++ b/core/src/io/anuke/mindustry/net/Net.java @@ -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");