06 Maps/Floors/Objects - Swing ScriptSelector - minor bug fixes

This commit is contained in:
Ethan
2019-12-17 04:20:52 -06:00
parent e38ac33066
commit 67e801cf9c
15 changed files with 151 additions and 170 deletions
+10 -1
View File
@@ -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...";