mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 04:25:26 +02:00
Wire up Mining/Excavation/Herbalism/Woodcutting XP values
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user