diff options
author | Cow <cow@volloeko.de> | 2020-07-26 15:25:03 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-07-26 15:25:03 +0200 |
commit | b9c5f23a671c50422303bf50e315d364b1354acf (patch) | |
tree | 07ed5e82a1a9465421bb2c92e2926d2407b5a681 /src/main/java/eu/olli/cowlection/util | |
parent | b7526fccd188bc55e87d86d3d685a932756b7d70 (diff) | |
download | Cowlection-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.java | 8 |
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); + } } } |