mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Dumb ternary statement was dumb.
This commit is contained in:
@ -114,7 +114,7 @@ public class HerbalismManager extends SkillManager {
|
||||
*/
|
||||
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;
|
||||
|
Reference in New Issue
Block a user