diff --git a/src/main/java/dev/tehbrian/buildersutilities/BuildersUtilities.java b/src/main/java/dev/tehbrian/buildersutilities/BuildersUtilities.java index 55127ae..2a48df3 100644 --- a/src/main/java/dev/tehbrian/buildersutilities/BuildersUtilities.java +++ b/src/main/java/dev/tehbrian/buildersutilities/BuildersUtilities.java @@ -213,7 +213,7 @@ private void initRestrictions() { loader.load(this.injector.getInstance(SpigotRestrictionHelper.class)); } - private boolean isEmpty(final Component component) { + private static boolean isEmpty(final Component component) { return PlainTextComponentSerializer.plainText().serialize(component).isEmpty(); } diff --git a/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java b/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java index e78d448..f8628df 100644 --- a/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java +++ b/src/main/java/dev/tehbrian/buildersutilities/setting/SettingsListener.java @@ -74,29 +74,29 @@ public void onBlockPhysics(final BlockPhysicsEvent event) { final String lowerName = event.getChangedType().name().toLowerCase(); - if (lowerName.contains("chest") || - lowerName.contains("stair") || - lowerName.contains("fence") || - lowerName.contains("pane") || - lowerName.contains("wall") || - lowerName.contains("bar") || - lowerName.contains("door")) { + if (lowerName.contains("chest") + || lowerName.contains("stair") + || lowerName.contains("fence") + || lowerName.contains("pane") + || lowerName.contains("wall") + || lowerName.contains("bar") + || lowerName.contains("door")) { return; } if (!this.configConfig.data().settings().disableRedstone()) { - if (lowerName.contains("redstone") || - lowerName.contains("daylight") || - lowerName.contains("diode") || - lowerName.contains("note") || - lowerName.contains("lever") || - lowerName.contains("button") || - lowerName.contains("command") || - lowerName.contains("tripwire") || - lowerName.contains("plate") || - lowerName.contains("string") || - lowerName.contains("piston") || - lowerName.contains("observer")) { + if (lowerName.contains("redstone") + || lowerName.contains("daylight") + || lowerName.contains("diode") + || lowerName.contains("note") + || lowerName.contains("lever") + || lowerName.contains("button") + || lowerName.contains("command") + || lowerName.contains("tripwire") + || lowerName.contains("plate") + || lowerName.contains("string") + || lowerName.contains("piston") + || lowerName.contains("observer")) { if (!block.getType().name().contains("air")) { return; }