Herbalism was the one that actually needed to remain blockdata.

This commit is contained in:
t00thpick1
2018-10-13 17:06:54 -04:00
parent 4bdd97a302
commit d778616b2c
3 changed files with 6 additions and 3 deletions

View File

@ -172,7 +172,7 @@ public final class BlockUtils {
* @return true if the block should affected by Green Terra, false otherwise
*/
public static boolean affectedByGreenTerra(BlockState blockState) {
if (ExperienceConfig.getInstance().isSkillBlock(SkillType.HERBALISM, blockState.getType())) {
if (ExperienceConfig.getInstance().isSkillBlock(SkillType.HERBALISM, blockState.getBlockData())) {
return true;
}
@ -362,6 +362,8 @@ public final class BlockUtils {
if (data instanceof Ageable)
{
Ageable ageable = (Ageable) data;
mcMMO.p.debug(ageable.getAge() + "/" + ageable.getMaximumAge());
System.out.println(ageable.getAge() + "/" + ageable.getMaximumAge());
return ageable.getAge() == ageable.getMaximumAge();
}
return true;