浏览代码

Temporarily disabled Flux Mining
I'll rework this skill in the future

nossr50 6 年之前
父节点
当前提交
5d010594dd

+ 1 - 0
Changelog.txt

@@ -8,6 +8,7 @@ Key:
   - Removal
 
 Version 2.1.4
+    Temporarily disabled Flux Mining
     Removed XP from entities that target endermite to prevent easy exploitation (Credits to TheBentoBox for the tip!) [Can be turned off in experience.yml]
     Fixed a bug where static chance skills like Arcane Salvage were using incorrect calculations for success
     Advanced Salvage now uses a rank system

+ 4 - 4
src/main/java/com/gmail/nossr50/commands/skills/SmeltingCommand.java

@@ -39,11 +39,11 @@ public class SmeltingCommand extends SkillCommand {
         }
 
         // FLUX MINING
-        if (canFluxMine) {
+        /*if (canFluxMine) {
             String[] fluxMiningStrings = getAbilityDisplayValues(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, player, SubSkillType.SMELTING_FLUX_MINING);
             str_fluxMiningChance = fluxMiningStrings[0];
             str_fluxMiningChanceLucky = fluxMiningStrings[1];
-        }
+        }*/
         
         // SECOND SMELT
         if (canSecondSmelt) {
@@ -65,11 +65,11 @@ public class SmeltingCommand extends SkillCommand {
     protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {
         List<String> messages = new ArrayList<String>();
 
-        if (canFluxMine) {
+        /*if (canFluxMine) {
             messages.add(getStatMessage(SubSkillType.SMELTING_FLUX_MINING, str_fluxMiningChance)
                     + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", str_fluxMiningChanceLucky) : ""));
             //messages.add(LocaleLoader.getString("Smelting.Ability.FluxMining", str_fluxMiningChance) + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", str_fluxMiningChanceLucky) : ""));
-        }
+        }*/
         
         if (canFuelEfficiency) {
             messages.add(getStatMessage(false, true, SubSkillType.SMELTING_FUEL_EFFICIENCY, burnTimeModifier));

+ 2 - 2
src/main/java/com/gmail/nossr50/listeners/BlockListener.java

@@ -374,7 +374,7 @@ public class BlockListener implements Listener {
                 }
             }
         }
-        else if (!heldItem.containsEnchantment(Enchantment.SILK_TOUCH)) {
+        /*else if (!heldItem.containsEnchantment(Enchantment.SILK_TOUCH)) {
             SmeltingManager smeltingManager = UserManager.getPlayer(player).getSmeltingManager();
 
             if (smeltingManager.canUseFluxMining(blockState)) {
@@ -383,7 +383,7 @@ public class BlockListener implements Listener {
                     event.setCancelled(true);
                 }
             }
-        }
+        }*/
     }
 
     /**