Skip to content

Commit

Permalink
Actually fix time changes on velocity not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Oct 7, 2024
1 parent d85ad02 commit 927641f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,9 +877,7 @@ protected void onMessage(String channel, String[] message) {
String server = message[1];
getLogger().info("Status okay for " + server);
} else if (message[0].equalsIgnoreCase("TimeChangeFinished")) {
if (getConfig().getGlobalDataEnabled()) {
getGlobalDataHandler().checkForFinishedTimeChanges();
}

} else if (message[0].equalsIgnoreCase("login")) {
String player = message[1];
String uuid = message[2];
Expand Down Expand Up @@ -1188,9 +1186,7 @@ public void onPluginMessage(PluginMessageEvent ev) {
getLogger().info("Status okay for " + server);
return;
} else if (subchannel.equalsIgnoreCase("TimeChangeFinished")) {
if (getConfig().getGlobalDataEnabled()) {
getGlobalDataHandler().checkForFinishedTimeChanges();
}

} else if (subchannel.equalsIgnoreCase("login")) {
String player = in.readUTF();
String uuid = in.readUTF();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,7 @@ public void onPluginMessagingReceived(PluginMessageEvent event) {
logger.info("Status okay for " + server);
return;
} else if (subchannel.equalsIgnoreCase("TimeChangeFinished")) {
if (getConfig().getGlobalDataEnabled()) {
getGlobalDataHandler().checkForFinishedTimeChanges();
}

} else if (subchannel.equalsIgnoreCase("login")) {

String player = in.readUTF();
Expand Down Expand Up @@ -706,6 +704,7 @@ public void timeChanged(TimeType type, boolean fake, boolean pre, boolean post)
}

}
globalDataHandler.onTimeChange(type);
}

@Override
Expand Down Expand Up @@ -965,9 +964,7 @@ protected void onMessage(String channel, String[] message) {
String server = message[1];
getLogger().info("Status okay for " + server);
} else if (message[0].equalsIgnoreCase("TimeChangeFinished")) {
if (getConfig().getGlobalDataEnabled()) {
getGlobalDataHandler().checkForFinishedTimeChanges();
}

} else if (message[0].equalsIgnoreCase("login")) {
String player = message[1];
String uuid = message[2];
Expand Down

0 comments on commit 927641f

Please sign in to comment.