Skip to content

Conversation

@awoo-civ
Copy link
Collaborator

@awoo-civ awoo-civ commented Jan 1, 2017

if (block == null || block.getType() == null) {
return;
}
boolean isJukebox = block.getType().equals(Material.JUKEBOX);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to check for isJukebox and isNoteblock, and fast-fail if neither.

As it is, this'll try to create snitches for every kind of block you reinforce.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh damn, duh.

@ProgrammerDan
Copy link

Merged and satisfied by e7fb06e , 5f614a0 , 02bd48b

@awoo-civ awoo-civ mentioned this pull request Feb 27, 2017
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants