Skip to content

Commit

Permalink
Ignore non-signs firing sign events, fixes #430
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 23, 2013
1 parent 1d0fedf commit dd57be7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -1087,6 +1087,9 @@ public void signChange(final SignChangeEvent event) {

Player player = event.getPlayer();
Block block = event.getBlock();
if (block == null || !(block.getState() instanceof Sign)) {
return; // Fix error induced by dark magic.
}
Sign sign = (Sign) block.getState();
dMaterial material = new dMaterial(block.getType());

Expand Down

0 comments on commit dd57be7

Please sign in to comment.