Skip to content

Commit

Permalink
Fix not returning early
Browse files Browse the repository at this point in the history
  • Loading branch information
awoo-civ authored and ProgrammerDan committed Jan 3, 2017
1 parent e7fb06e commit 5f614a0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ public void reinforceSnitchBlock(ReinforcementCreationEvent event) {
return;
}
boolean isJukebox = block.getType().equals(Material.JUKEBOX);
boolean isNoteblock = block.getType().equals(Material.NOTE_BLOCK);
if (!isJukebox || !isNoteblock) {
return;
}
Player player = event.getPlayer();
if (player == null) {
return;
Expand Down

0 comments on commit 5f614a0

Please sign in to comment.