mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-25 18:17:46 +01:00
Herbalism was the one that actually needed to remain blockdata.
This commit is contained in:
parent
4bdd97a302
commit
d778616b2c
@ -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;
|
||||
|
@ -6,8 +6,8 @@ import com.gmail.nossr50.datatypes.skills.SecondaryAbility;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.TreeSpecies;
|
||||
import org.bukkit.block.data.Ageable;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
public class StringUtils {
|
||||
|
||||
@ -48,6 +48,7 @@ public class StringUtils {
|
||||
|
||||
public static String getFriendlyConfigBlockDataString(BlockData data) {
|
||||
switch(data.getMaterial()){
|
||||
case CHORUS_FLOWER:
|
||||
case COCOA:
|
||||
case WHEAT:
|
||||
case BEETROOTS:
|
||||
|
@ -162,7 +162,7 @@ Experience:
|
||||
Brown_Mushroom: 150
|
||||
Cactus: 30
|
||||
Carrots_Ripe: 50
|
||||
Chorus_Flower: 25
|
||||
Chorus_Flower_Ripe: 25
|
||||
Chorus_Plant: 1
|
||||
Cocoa_Ripe: 30
|
||||
Wheat_Ripe: 50
|
||||
|
Loading…
Reference in New Issue
Block a user