From ae5960f210563f0304883aec0523ab8853b2db97 Mon Sep 17 00:00:00 2001 From: Olyno Date: Mon, 3 Jun 2024 19:37:13 +0200 Subject: [PATCH] chore(formatting): fix formatting Co-authored-by: Patrick Miller --- src/main/java/ch/njol/skript/effects/EffToggle.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/njol/skript/effects/EffToggle.java b/src/main/java/ch/njol/skript/effects/EffToggle.java index 39abf3c697c..a236eabf193 100644 --- a/src/main/java/ch/njol/skript/effects/EffToggle.java +++ b/src/main/java/ch/njol/skript/effects/EffToggle.java @@ -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);