diff --git a/src/main/java/com/gmail/nossr50/util/ItemChecks.java b/src/main/java/com/gmail/nossr50/util/ItemChecks.java index 5f5c309ad..39c556dc5 100644 --- a/src/main/java/com/gmail/nossr50/util/ItemChecks.java +++ b/src/main/java/com/gmail/nossr50/util/ItemChecks.java @@ -592,9 +592,7 @@ public class ItemChecks { return true; case INK_SACK: - if (is.getData().getData() == DyeColor.BROWN.getDyeData()) { - return true; - } + return is.getData().getData() == DyeColor.BROWN.getDyeData(); default: return false; diff --git a/src/main/java/com/gmail/nossr50/util/LogFilter.java b/src/main/java/com/gmail/nossr50/util/LogFilter.java index 1371acc40..dc99931df 100644 --- a/src/main/java/com/gmail/nossr50/util/LogFilter.java +++ b/src/main/java/com/gmail/nossr50/util/LogFilter.java @@ -15,11 +15,10 @@ public class LogFilter implements Filter { @Override public boolean isLoggable(LogRecord record) { - if(record.getMessage().contains("[Debug]") && !debug) { + if (record.getMessage().contains("[Debug]") && !debug) { return false; } - else { - return true; - } + + return true; } }