Skip to content

Commit

Permalink
Fix exception with cuboids
Browse files Browse the repository at this point in the history
  • Loading branch information
nsporillo committed Mar 1, 2016
1 parent 6ab45cc commit 2a4849d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void onBlockDamage(BlockDamageEvent e) {
}

private boolean hasOwner(Skull skull) {
return !skull.getOwner().equals("");
return skull.hasOwner() && !skull.getOwner().equals("");
}

private boolean hasTool(Player p) {
Expand Down

0 comments on commit 2a4849d

Please sign in to comment.