Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hover info on snitch placement #15

Closed
wants to merge 4 commits into from
Closed

Add hover info on snitch placement #15

wants to merge 4 commits into from

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