|
@@ -157,7 +157,8 @@ public final class BlockUtils {
|
|
return false;
|
|
return false;
|
|
|
|
|
|
default :
|
|
default :
|
|
- return !isMcMMOAnvil(blockState) && !mcMMO.getModManager().isCustomAbilityBlock(blockState);
|
|
|
|
|
|
+ return !isMcMMOAnvil(blockState);
|
|
|
|
+ //return !isMcMMOAnvil(blockState) && !mcMMO.getModManager().isCustomAbilityBlock(blockState);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -283,7 +284,7 @@ public final class BlockUtils {
|
|
return false;
|
|
return false;
|
|
|
|
|
|
default :
|
|
default :
|
|
- return !isMcMMOAnvil(blockState) && !mcMMO.getModManager().isCustomAbilityBlock(blockState);
|
|
|
|
|
|
+ return !isMcMMOAnvil(blockState); // && !mcMMO.getModManager().isCustomAbilityBlock(blockState);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -331,11 +332,13 @@ public final class BlockUtils {
|
|
* @return true if the block should affected by Green Terra, false otherwise
|
|
* @return true if the block should affected by Green Terra, false otherwise
|
|
*/
|
|
*/
|
|
public static boolean affectedByGreenTerra(BlockState blockState) {
|
|
public static boolean affectedByGreenTerra(BlockState blockState) {
|
|
- if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.HERBALISM, blockState.getBlockData())) {
|
|
|
|
|
|
+ if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.HERBALISM, blockState.getType())) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
+ else
|
|
|
|
+ return false;
|
|
|
|
|
|
- return mcMMO.getModManager().isCustomHerbalismBlock(blockState);
|
|
|
|
|
|
+ //return mcMMO.getModManager().isCustomHerbalismBlock(blockState);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -347,10 +350,10 @@ public final class BlockUtils {
|
|
* otherwise
|
|
* otherwise
|
|
*/
|
|
*/
|
|
public static Boolean affectedBySuperBreaker(BlockState blockState) {
|
|
public static Boolean affectedBySuperBreaker(BlockState blockState) {
|
|
- if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.MINING, blockState.getBlockData()))
|
|
|
|
|
|
+ if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.MINING, blockState.getType()))
|
|
return true;
|
|
return true;
|
|
|
|
|
|
- return isOre(blockState) || mcMMO.getModManager().isCustomMiningBlock(blockState);
|
|
|
|
|
|
+ return isOre(blockState); //|| mcMMO.getModManager().isCustomMiningBlock(blockState);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -362,9 +365,11 @@ public final class BlockUtils {
|
|
* otherwise
|
|
* otherwise
|
|
*/
|
|
*/
|
|
public static boolean affectedByGigaDrillBreaker(BlockState blockState) {
|
|
public static boolean affectedByGigaDrillBreaker(BlockState blockState) {
|
|
- if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.EXCAVATION, blockState.getBlockData()))
|
|
|
|
|
|
+ if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.EXCAVATION, blockState.getType()))
|
|
return true;
|
|
return true;
|
|
- return mcMMO.getModManager().isCustomExcavationBlock(blockState);
|
|
|
|
|
|
+ else
|
|
|
|
+ return false;
|
|
|
|
+ //return mcMMO.getModManager().isCustomExcavationBlock(blockState);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -375,9 +380,11 @@ public final class BlockUtils {
|
|
* @return true if the block is a log, false otherwise
|
|
* @return true if the block is a log, false otherwise
|
|
*/
|
|
*/
|
|
public static boolean isLog(BlockState blockState) {
|
|
public static boolean isLog(BlockState blockState) {
|
|
- if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.WOODCUTTING, blockState.getBlockData()))
|
|
|
|
|
|
+ if (ExperienceConfig.getInstance().doesBlockGiveSkillXP(PrimarySkillType.WOODCUTTING, blockState.getType()))
|
|
return true;
|
|
return true;
|
|
- return mcMMO.getModManager().isCustomLog(blockState);
|
|
|
|
|
|
+ else
|
|
|
|
+ return false;
|
|
|
|
+ //return mcMMO.getModManager().isCustomLog(blockState);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -398,7 +405,8 @@ public final class BlockUtils {
|
|
return true;
|
|
return true;
|
|
|
|
|
|
default :
|
|
default :
|
|
- return mcMMO.getModManager().isCustomLeaf(blockState);
|
|
|
|
|
|
+ return false;
|
|
|
|
+ //return mcMMO.getModManager().isCustomLeaf(blockState);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|