mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed Green Terra & Super Breaker awarding 4x drops at high levels.
This commit is contained in:
parent
443b4a193c
commit
adea5a5674
@ -9,6 +9,7 @@ Key:
|
|||||||
|
|
||||||
Version 1.3.04-dev
|
Version 1.3.04-dev
|
||||||
= Fixed Shake ability dropping bonemeal instead of ink for squids.
|
= Fixed Shake ability dropping bonemeal instead of ink for squids.
|
||||||
|
= Fixed Green Terra & Super Breaker awarding 4x drops at high levels.
|
||||||
! Changed MySQL to reload all player information on reconnection
|
! Changed MySQL to reload all player information on reconnection
|
||||||
|
|
||||||
Version 1.3.03
|
Version 1.3.03
|
||||||
|
@ -179,7 +179,6 @@ public class mcBlockListener implements Listener {
|
|||||||
/* Triple drops */
|
/* Triple drops */
|
||||||
if (PP.getGreenTerraMode() && Herbalism.canBeGreenTerra(mat)) {
|
if (PP.getGreenTerraMode() && Herbalism.canBeGreenTerra(mat)) {
|
||||||
Herbalism.herbalismProcCheck(block, player, event, plugin);
|
Herbalism.herbalismProcCheck(block, player, event, plugin);
|
||||||
Herbalism.herbalismProcCheck(block, player, event, plugin); //Called twice for triple drop functionality
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().herbalismDoubleDrops(player) && Herbalism.canBeGreenTerra(mat)) {
|
if (mcPermissions.getInstance().herbalismDoubleDrops(player) && Herbalism.canBeGreenTerra(mat)) {
|
||||||
|
@ -165,7 +165,7 @@ public class Mining
|
|||||||
|
|
||||||
int skillLevel = Users.getProfile(player).getSkillLevel(SkillType.MINING);
|
int skillLevel = Users.getProfile(player).getSkillLevel(SkillType.MINING);
|
||||||
|
|
||||||
if ((MAX_BONUS_LEVEL > 1000 || (Math.random() * 1000 <= skillLevel)) && mcPermissions.getInstance().miningDoubleDrops(player)) {
|
if ((skillLevel > MAX_BONUS_LEVEL || (Math.random() * 1000 <= skillLevel)) && mcPermissions.getInstance().miningDoubleDrops(player)) {
|
||||||
if (player.getItemInHand().containsEnchantment(Enchantment.SILK_TOUCH)) {
|
if (player.getItemInHand().containsEnchantment(Enchantment.SILK_TOUCH)) {
|
||||||
m.mcDropItem(block.getLocation(), new ItemStack(block.getType()));
|
m.mcDropItem(block.getLocation(), new ItemStack(block.getType()));
|
||||||
}
|
}
|
||||||
@ -255,7 +255,6 @@ public class Mining
|
|||||||
Bukkit.getPluginManager().callEvent(armswing);
|
Bukkit.getPluginManager().callEvent(armswing);
|
||||||
Skills.abilityDurabilityLoss(player.getItemInHand(), durabilityLoss);
|
Skills.abilityDurabilityLoss(player.getItemInHand(), durabilityLoss);
|
||||||
|
|
||||||
miningBlockCheck(player, block);
|
|
||||||
miningBlockCheck(player, block);
|
miningBlockCheck(player, block);
|
||||||
|
|
||||||
if (LoadProperties.spoutEnabled) {
|
if (LoadProperties.spoutEnabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user