Removed unnecessary array length check
This commit is contained in:
parent
40b52fa321
commit
490b5eb0ee
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import net.coreprotect.database.logger.ChatLogger;
|
||||||
class PlayerChatProcess {
|
class PlayerChatProcess {
|
||||||
|
|
||||||
static void process(PreparedStatement preparedStmt, int batchCount, int processId, int id, Object[] object, String user) {
|
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);
|
Map<Integer, String> strings = Consumer.consumerStrings.get(processId);
|
||||||
if (strings.get(id) != null) {
|
if (strings.get(id) != null) {
|
||||||
String message = strings.get(id);
|
String message = strings.get(id);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import net.coreprotect.database.logger.CommandLogger;
|
||||||
class PlayerCommandProcess {
|
class PlayerCommandProcess {
|
||||||
|
|
||||||
static void process(PreparedStatement preparedStmt, int batchCount, int processId, int id, Object[] object, String user) {
|
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);
|
Map<Integer, String> strings = Consumer.consumerStrings.get(processId);
|
||||||
if (strings.get(id) != null) {
|
if (strings.get(id) != null) {
|
||||||
String message = strings.get(id);
|
String message = strings.get(id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue