Wire up Mining/Excavation/Herbalism/Woodcutting XP values

This commit is contained in:
nossr50
2019-04-30 02:08:11 -07:00
parent 2efa64ae17
commit 4d8e4d0e70
6 changed files with 40 additions and 22 deletions

View File

@@ -34,11 +34,7 @@ public class Mining {
* @param blockState The {@link BlockState} to check ability activation for
*/
public static int getBlockXp(BlockState blockState) {
int xp = ExperienceConfig.getInstance().getXp(PrimarySkillType.MINING, blockState.getType());
/*if (xp == 0 && mcMMO.getModManager().isCustomMiningBlock(blockState)) {
xp = mcMMO.getModManager().getBlock(blockState).getXpGain();
}*/
int xp = mcMMO.getConfigManager().getExperienceMapManager().getMiningXp(blockState.getType());
return xp;
}