From e7998613fca8ea8423f232063d2e759afa234b8c Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Sun, 22 Jan 2023 18:47:06 -0800 Subject: Refactor listenened to listened --- .../main/java/kr/syeyoung/dungeonsguide/mod/chat/ChatProcessor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/src/main') 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 context = new HashMap<>(); Iterator 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(); -- cgit