mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixing Double Drops for Mining -- READ THE FULL COMMIT MSG
This fix is very similar to what was deployed for Herbalism in 2.1.22 NOTE: Here's what your Double_Drop entries in Config.yml for Mining should look like https://paste.gg/p/anonymous/dcd06f1215844311b4f2225f200090d1 IMPORTANT: Version 2.1.22 which came before this had a similar fix for Herbalism, instructions on how to fix your Herbalism Double Drops can be found here https://www.spigotmc.org/resources/official-mcmmo.64348/update?update=269868
This commit is contained in:
parent
b1f4ea8cba
commit
faab64864a
@ -7,6 +7,15 @@ Key:
|
||||
! Change
|
||||
- Removal
|
||||
|
||||
Version 2.1.23
|
||||
Fixed a bug with Double Drops for Mining
|
||||
Note: You'll need to add these entries to your config.yml manually, or wait for the upcoming config update where this will be fixed for you automatically.
|
||||
NOTE: Here's what your Double_Drop entries in Config.yml for Mining should look like
|
||||
https://paste.gg/p/anonymous/dcd06f1215844311b4f2225f200090d1
|
||||
IMPORTANT: Version 2.1.22 which came before this had a similar fix for Herbalism, instructions on how to fix your Herbalism Double Drops can be found here
|
||||
https://www.spigotmc.org/resources/official-mcmmo.64348/update?update=269868
|
||||
NOTE: Due to the nature of these fixes, Fortune enchants now work with Double/Triple drops
|
||||
|
||||
Version 2.1.22
|
||||
Less aggressive spam click protection on Fishing
|
||||
Updated Hungarian file for missing entries related to Fishing messages (credit: andris155)
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.1.22</version>
|
||||
<version>2.1.23-SNAPSHOT</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -34,6 +34,9 @@ public class Mining {
|
||||
Material blockType = blockState.getType();
|
||||
|
||||
switch (blockType) {
|
||||
case ANDESITE:
|
||||
case DIORITE:
|
||||
case GRANITE:
|
||||
case END_STONE:
|
||||
case TERRACOTTA:
|
||||
case CLAY:
|
||||
|
@ -91,15 +91,8 @@ public class MiningManager extends SkillManager {
|
||||
return;
|
||||
|
||||
//TODO: Make this readable
|
||||
for (int i = mcMMOPlayer.getAbilityMode(skill.getAbility()) ? 2 : 1; i != 0; i--) {
|
||||
if (RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.MINING_DOUBLE_DROPS, player)) {
|
||||
if (silkTouch) {
|
||||
Mining.handleSilkTouchDrops(blockState);
|
||||
}
|
||||
else {
|
||||
Mining.handleMiningDrops(blockState);
|
||||
}
|
||||
}
|
||||
if (RandomChanceUtil.checkRandomChanceExecutionSuccess(getPlayer(), SubSkillType.MINING_DOUBLE_DROPS, true)) {
|
||||
BlockUtils.markBlocksForBonusDrops(blockState, mcMMOPlayer.getAbilityMode(skill.getAbility()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -457,6 +457,9 @@ Double_Drops:
|
||||
Rose_Bush: true
|
||||
Peony: true
|
||||
Mining:
|
||||
Andesite: true
|
||||
Diorite: true
|
||||
Granite: true
|
||||
Coal_Ore: true
|
||||
Diamond_Ore: true
|
||||
Emerald_Ore: true
|
||||
|
Loading…
Reference in New Issue
Block a user