aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/eu/olli/cowlection/util
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2020-07-26 15:25:03 +0200
committerCow <cow@volloeko.de>2020-07-26 15:25:03 +0200
commitb9c5f23a671c50422303bf50e315d364b1354acf (patch)
tree07ed5e82a1a9465421bb2c92e2926d2407b5a681 /src/main/java/eu/olli/cowlection/util
parentb7526fccd188bc55e87d86d3d685a932756b7d70 (diff)
downloadCowlection-b9c5f23a671c50422303bf50e315d364b1354acf.tar.gz
Cowlection-b9c5f23a671c50422303bf50e315d364b1354acf.tar.bz2
Cowlection-b9c5f23a671c50422303bf50e315d364b1354acf.zip
Small fixes
- Remove ": " when copying chat messages - Fix dungeon tooltip cleaner cleaning a little bit too much - Temporary work-around to fix crash with other mods not being able to handle offline messages
Diffstat (limited to 'src/main/java/eu/olli/cowlection/util')
-rw-r--r--src/main/java/eu/olli/cowlection/util/VersionChecker.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/eu/olli/cowlection/util/VersionChecker.java b/src/main/java/eu/olli/cowlection/util/VersionChecker.java
index 8f05beb..b1a9d48 100644
--- a/src/main/java/eu/olli/cowlection/util/VersionChecker.java
+++ b/src/main/java/eu/olli/cowlection/util/VersionChecker.java
@@ -120,7 +120,13 @@ public class VersionChecker {
}
if (statusMsg != null) {
- main.getChatHelper().sendMessage(statusMsg);
+ if (isCommandTriggered) {
+ main.getChatHelper().sendMessage(statusMsg);
+ } else {
+ IChatComponent finalStatusMsg = statusMsg;
+ new TickDelay(() -> main.getChatHelper().sendMessage(finalStatusMsg)
+ , 6 * 20);
+ }
}
}