Permalink
Browse files

Dumb ternary statement was dumb.

  • Loading branch information...
1 parent 5e36683 commit 24153c2fb1390261e3af48803790d1b93b25f8a8 @gmcferrin gmcferrin committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java
View
2 src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java
@@ -114,7 +114,7 @@ public boolean processGreenTerra(BlockState blockState) {
*/
public void herbalismBlockCheck(BlockState blockState) {
Material material = blockState.getType();
- boolean oneBlockPlant = (material == Material.CACTUS || material == Material.SUGAR_CANE_BLOCK) ? false : true;
+ boolean oneBlockPlant = !(material == Material.CACTUS || material == Material.SUGAR_CANE_BLOCK);
if (oneBlockPlant && mcMMO.placeStore.isTrue(blockState)) {
return;

0 comments on commit 24153c2

Please sign in to comment.