aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-03-25 10:54:07 -0400
committerbowser0000 <bowser0000@gmail.com>2021-03-25 10:54:07 -0400
commit786efa0ea48daffb075d2d6482a677571e136a1b (patch)
treed409be95f6ca5a0c835c9e67e739cc9eb1c3ef0a /src/main/java/me
parentead1d3ea20ec2cecc8d36ff43b7a99b648d790a5 (diff)
downloadSkyblockMod-786efa0ea48daffb075d2d6482a677571e136a1b.tar.gz
SkyblockMod-786efa0ea48daffb075d2d6482a677571e136a1b.tar.bz2
SkyblockMod-786efa0ea48daffb075d2d6482a677571e136a1b.zip
Fix some dungeon features not working when other mods hide messages
SkyblockAddons, Skytils, etc.
Diffstat (limited to 'src/main/java/me')
-rw-r--r--src/main/java/me/Danker/features/DungeonTimer.java2
-rw-r--r--src/main/java/me/Danker/features/NecronNotifications.java2
-rw-r--r--src/main/java/me/Danker/features/WatcherReadyAlert.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/features/DungeonTimer.java b/src/main/java/me/Danker/features/DungeonTimer.java
index 5929f05..394f2de 100644
--- a/src/main/java/me/Danker/features/DungeonTimer.java
+++ b/src/main/java/me/Danker/features/DungeonTimer.java
@@ -22,7 +22,7 @@ public class DungeonTimer {
static int dungeonDeaths = 0;
static int puzzleFails = 0;
- @SubscribeEvent
+ @SubscribeEvent(receiveCanceled = true)
public void onChat(ClientChatReceivedEvent event) {
String message = StringUtils.stripControlCodes(event.message.getUnformattedText());
diff --git a/src/main/java/me/Danker/features/NecronNotifications.java b/src/main/java/me/Danker/features/NecronNotifications.java
index a1d4d26..d35996c 100644
--- a/src/main/java/me/Danker/features/NecronNotifications.java
+++ b/src/main/java/me/Danker/features/NecronNotifications.java
@@ -18,7 +18,7 @@ import java.util.List;
public class NecronNotifications {
- @SubscribeEvent
+ @SubscribeEvent(receiveCanceled = true)
public void onChat(ClientChatReceivedEvent event) {
String message = StringUtils.stripControlCodes(event.message.getUnformattedText());
diff --git a/src/main/java/me/Danker/features/WatcherReadyAlert.java b/src/main/java/me/Danker/features/WatcherReadyAlert.java
index b68ccc2..ca3777b 100644
--- a/src/main/java/me/Danker/features/WatcherReadyAlert.java
+++ b/src/main/java/me/Danker/features/WatcherReadyAlert.java
@@ -9,7 +9,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class WatcherReadyAlert {
- @SubscribeEvent
+ @SubscribeEvent(receiveCanceled = true)
public void onChat(ClientChatReceivedEvent event) {
String message = StringUtils.stripControlCodes(event.message.getUnformattedText());