Removes a function for checking if a control block is powered as it's never used
This commit is contained in:
		@@ -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
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user