From 490b5eb0ee222754ab4807430d68827eb923caf1 Mon Sep 17 00:00:00 2001 From: Intelli Date: Mon, 26 Jul 2021 18:09:17 -0600 Subject: [PATCH] Removed unnecessary array length check --- .../net/coreprotect/consumer/process/PlayerChatProcess.java | 2 +- .../net/coreprotect/consumer/process/PlayerCommandProcess.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java b/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java index aedffb7..f4b8629 100644 --- a/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java +++ b/src/main/java/net/coreprotect/consumer/process/PlayerChatProcess.java @@ -11,7 +11,7 @@ import net.coreprotect.database.logger.ChatLogger; class PlayerChatProcess { static void process(PreparedStatement preparedStmt, int batchCount, int processId, int id, Object[] object, String user) { - if (object.length == 2 && object[1] instanceof Location) { + if (object[1] instanceof Location) { Map strings = Consumer.consumerStrings.get(processId); if (strings.get(id) != null) { String message = strings.get(id); diff --git a/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java b/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java index 88bd85c..69b1a1b 100644 --- a/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java +++ b/src/main/java/net/coreprotect/consumer/process/PlayerCommandProcess.java @@ -11,7 +11,7 @@ import net.coreprotect.database.logger.CommandLogger; class PlayerCommandProcess { static void process(PreparedStatement preparedStmt, int batchCount, int processId, int id, Object[] object, String user) { - if (object.length == 2 && object[1] instanceof Location) { + if (object[1] instanceof Location) { Map strings = Consumer.consumerStrings.get(processId); if (strings.get(id) != null) { String message = strings.get(id);