mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-02-18 02:02:29 +01:00
Removed unnecessary array length check
This commit is contained in:
parent
40b52fa321
commit
490b5eb0ee
@ -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<Integer, String> strings = Consumer.consumerStrings.get(processId);
|
||||
if (strings.get(id) != null) {
|
||||
String message = strings.get(id);
|
||||
|
@ -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<Integer, String> strings = Consumer.consumerStrings.get(processId);
|
||||
if (strings.get(id) != null) {
|
||||
String message = strings.get(id);
|
||||
|
Loading…
Reference in New Issue
Block a user