mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 11:07:44 +01:00
Dumb ternary statement was dumb.
This commit is contained in:
parent
5e36683ff2
commit
24153c2fb1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user