From 7dcf050d96f84805546c2b13974bab1d7031b6e9 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 25 Sep 2021 12:46:59 +0200 Subject: [PATCH] Removes a function for checking if a control block is powered as it's never used --- .../net/knarcraft/stargate/portal/Portal.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/main/java/net/knarcraft/stargate/portal/Portal.java b/src/main/java/net/knarcraft/stargate/portal/Portal.java index 6245300..a5487de 100644 --- a/src/main/java/net/knarcraft/stargate/portal/Portal.java +++ b/src/main/java/net/knarcraft/stargate/portal/Portal.java @@ -613,25 +613,6 @@ public class Portal { this.fixed = fixed; } - /** - * Gets whether at least one of this portal's control blocks are powered - * - * @return

True if at least one control block is powered

- */ - public boolean isPowered() { - RelativeBlockVector[] controls = gate.getLayout().getControls(); - - for (RelativeBlockVector vector : controls) { - BlockData data = getBlockAt(vector).getBlock().getBlockData(); - - if (data instanceof Powerable && ((Powerable) data).isPowered()) { - return true; - } - } - - return false; - } - /** * Teleports a player to this portal *