Removes a function for checking if a control block is powered as it's never used

This commit is contained in:
Kristian Knarvik 2021-09-25 12:46:59 +02:00
parent 8ada84ddb3
commit 7dcf050d96

View File

@ -613,25 +613,6 @@ public class Portal {
this.fixed = fixed; this.fixed = fixed;
} }
/**
* Gets whether at least one of this portal's control blocks are powered
*
* @return <p>True if at least one control block is powered</p>
*/
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 * Teleports a player to this portal
* *