aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-01-22 18:47:06 -0800
committerWalker Selby <git@walkerselby.com>2023-01-22 18:47:06 -0800
commite7998613fca8ea8423f232063d2e759afa234b8c (patch)
tree0e282faa298869aca85fd0a3a7f8535f59e55948
parenta3cd631fe7be7d476414713faa9c5ddcf0c0cf6a (diff)
downloadSkyblock-Dungeons-Guide-e7998613fca8ea8423f232063d2e759afa234b8c.tar.gz
Skyblock-Dungeons-Guide-e7998613fca8ea8423f232063d2e759afa234b8c.tar.bz2
Skyblock-Dungeons-Guide-e7998613fca8ea8423f232063d2e759afa234b8c.zip
Refactor listenened to listened
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/chat/ChatProcessor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/chat/ChatProcessor.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/chat/ChatProcessor.java
index b65e64aa..003b5a44 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/chat/ChatProcessor.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/chat/ChatProcessor.java
@@ -93,16 +93,16 @@ public class ChatProcessor {
logger.info("[CHAT] {}", txt);
int processed = 0;
- int listenened = 0;
+ int listened = 0;
Map<String, Object> context = new HashMap<>();
Iterator<ChatSubscriber> it = chatSubscriberQueue.iterator();
while (it.hasNext()) {
ChatSubscriber chatSubscribed = it.next();
context.put("removed", processed);
- context.put("onceListenered", listenened);
+ context.put("onceListenered", listened);
ChatProcessResult chatProcessResult = chatSubscribed.process(txt, context);
if (chatProcessResult.isRemoveChat()) processed++;
- if (chatProcessResult.isRemoveListener()) listenened++;
+ if (chatProcessResult.isRemoveListener()) listened++;
if (chatProcessResult.isRemoveChat()) chatReceivedEvent.setResult(Event.Result.DENY);
if (chatProcessResult.isRemoveListener()) it.remove();