This commit is contained in:
nossr50 2019-06-10 16:14:24 -07:00
parent 1297b45ef8
commit f5f4182a90
4 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,6 @@
Version 2.1.75
Fixed a bug that prevented Fortune from working correctly if a Double Drop was triggered
Version 2.1.74 Version 2.1.74
Fixed a NPE that could occur during certain events if a skill was disabled in coreskills.yml (Sorry!) Fixed a NPE that could occur during certain events if a skill was disabled in coreskills.yml (Sorry!)

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.1.74</version> <version>2.1.75</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -76,10 +76,11 @@ public class BlockListener implements Listener {
for (int i = 0; i < bonusCount; i++) { for (int i = 0; i < bonusCount; i++) {
event.getBlock().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is); event.getBlock().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
} }
event.getBlock().removeMetadata(mcMMO.BONUS_DROPS_METAKEY, plugin);
} }
} }
if(event.getBlock().hasMetadata(mcMMO.BONUS_DROPS_METAKEY))
event.getBlock().removeMetadata(mcMMO.BONUS_DROPS_METAKEY, plugin);
} }
/*@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) /*@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)

View File

@ -73,8 +73,6 @@ public class MiningManager extends SkillManager {
return; return;
} }
Material material = blockState.getType();
if (mcMMOPlayer.getAbilityMode(skill.getAbility())) { if (mcMMOPlayer.getAbilityMode(skill.getAbility())) {
SkillUtils.handleDurabilityChange(getPlayer().getInventory().getItemInMainHand(), Config.getInstance().getAbilityToolDamage()); SkillUtils.handleDurabilityChange(getPlayer().getInventory().getItemInMainHand(), Config.getInstance().getAbilityToolDamage());
} }