mirror of
https://github.com/2006-Scape/2006RebottedClient.git
synced 2026-07-03 00:31:48 +00:00
06 Maps/Floors/Objects - Swing ScriptSelector - minor bug fixes
This commit is contained in:
@@ -6316,7 +6316,6 @@ public class Client extends GameApplet {
|
||||
ObjectDefinition.clear();
|
||||
NpcDefinition.clear();
|
||||
ItemDefinition.clear();
|
||||
FloorDefinition.underlays = null;
|
||||
FloorDefinition.overlays = null;
|
||||
IdentityKit.kits = null;
|
||||
Widget.interfaceCache = null;
|
||||
@@ -7936,6 +7935,16 @@ public class Client extends GameApplet {
|
||||
private void login(String name, String password, boolean reconnecting) {
|
||||
SignLink.setError(name);
|
||||
try {
|
||||
if(name.length() < 3) {
|
||||
firstLoginMessage = "";
|
||||
secondLoginMessage = "Your username is too short.";
|
||||
return;
|
||||
}
|
||||
if(password.length() < 3) {
|
||||
firstLoginMessage = "";
|
||||
secondLoginMessage = "Your password is too short.";
|
||||
return;
|
||||
}
|
||||
if (!reconnecting) {
|
||||
firstLoginMessage = "";
|
||||
secondLoginMessage = "Connecting to server...";
|
||||
|
||||
Reference in New Issue
Block a user