mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Cacti & Sugar Cane are an exception, because the bottom block is
normally player-placed but the top two are grown naturally.
This commit is contained in:
parent
4bddbbf56e
commit
e31b7d5c48
@ -113,11 +113,12 @@ public class HerbalismManager extends SkillManager {
|
||||
* @param blockState The {@link BlockState} to check ability activation for
|
||||
*/
|
||||
public void herbalismBlockCheck(BlockState blockState) {
|
||||
if (mcMMO.placeStore.isTrue(blockState)) {
|
||||
Material material = blockState.getType();
|
||||
|
||||
if (mcMMO.placeStore.isTrue(blockState) && (material != Material.CACTUS || material != Material.SUGAR_CANE_BLOCK)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Material material = blockState.getType();
|
||||
HerbalismBlock herbalismBlock = HerbalismBlock.getHerbalismBlock(material);
|
||||
ItemStack drop = null;
|
||||
int amount = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user