Skip to content

Commit

Permalink
make checkstyle happy
Browse files Browse the repository at this point in the history
  • Loading branch information
TehBrian committed Oct 12, 2023
1 parent b1ba84e commit 0f1648d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f1648d

Please sign in to comment.