Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit d9488f0

Browse files
Bug fix; Build 5
- Fixed a potentially fatal bug in the cache that can result in "null" responses for obtaining a server's commands.
1 parent 44fcd31 commit d9488f0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Project-Lynx/src/main/java/data/Data.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,6 @@ public static void loadCache(String key, JSONObject obj) {
436436

437437
//System.out.println("DEBUG CRITICAL (TOP) [Data.java] " + cmds_config);
438438

439-
if(!command_cache.isEmpty())
440-
command_cache.clear();
441-
442439
//COMMANDS CONFIG
443440
for(String con_key: cmds_config.keySet()) {
444441
//System.out.println("DEBUG con_key [Data.java] " + con_key);
@@ -552,7 +549,7 @@ public static void loadCache(String key, JSONObject obj) {
552549
}
553550

554551
//System.out.println("DEBUG srvr_cache - [Data.java] " + srvr_cache);
555-
//System.out.println("DEBUG command_cache - [Data.java] " + command_cache + "\n\n\n");
552+
System.out.println("DEBUG command_cache - [Data.java] " + command_cache + "\n\n\n");
556553

557554
}
558555

Project-Lynx/src/main/java/handlers/MessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void onEvent(GenericEvent event) {
3535

3636
User author = ((MessageReceivedEvent) event).getAuthor();
3737
Guild g = null;
38-
long delayTimer = 150; // 50 ms
38+
long delayTimer = 150; // 150 ms
3939
String prefix; //Server's prefix... if it's even a server.
4040

4141
try {

Project-Lynx/src/main/java/init/InitData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ public class InitData {
7878
/*
7979
* Use this to define the version
8080
*/
81-
public static String version = "Pre-Release v0.2.0a Build 4 - The Rewrite Update";
81+
public static String version = "Pre-Release v0.2.0a Build 5 - The Rewrite Update";
8282

8383
}

0 commit comments

Comments
 (0)