Skip to content

Commit

Permalink
chore(formatting): fix formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
  • Loading branch information
Olyno and APickledWalrus authored Jun 3, 2024
1 parent 9bb3ed5 commit ae5960f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/ch/njol/skript/effects/EffToggle.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ else if (data instanceof Powerable) // power = NOT power
((Powerable) data).setPowered(!((Powerable) data).isPowered());
} else {
boolean value = state == State.ACTIVATE;
if (data instanceof Openable)
if (data instanceof Openable) {
((Openable) data).setOpen(value);
else if (data instanceof Powerable)
} else if (data instanceof Powerable) {
((Powerable) data).setPowered(value);
}
}

block.setBlockData(data);
Expand Down

0 comments on commit ae5960f

Please sign in to comment.