From 254e1a10714b518d0ed4d919d1be39da5505dec8 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 30 Jun 2020 11:51:46 -0700 Subject: [PATCH] 2.1.131 --- Changelog.txt | 1 - pom.xml | 2 +- .../gmail/nossr50/config/skills/salvage/SalvageConfig.java | 3 ++- .../com/gmail/nossr50/util/compat/CompatibilityManager.java | 5 +++++ src/main/resources/config.yml | 6 ------ 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 79363e0f9..9ca00e66f 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -33,7 +33,6 @@ Version 2.1.131 Added Netherite to Experience tables for Repair in experience.yml (see notes) Added Piglin Brute to Experience tables for all combat skills in experience.yml - Netherite now requires 100 Salvage skill (by default configs) in order to salvage Added the missing NMS wiring (it should be noted NMS isn't currently being used in mcMMO, but the framework is there. Working on a sideproject involving this...) diff --git a/pom.xml b/pom.xml index bd3350dd2..fa11cc956 100755 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.gmail.nossr50.mcMMO mcMMO - 2.1.131-SNAPSHOT + 2.1.131 mcMMO https://github.com/mcMMO-Dev/mcMMO diff --git a/src/main/java/com/gmail/nossr50/config/skills/salvage/SalvageConfig.java b/src/main/java/com/gmail/nossr50/config/skills/salvage/SalvageConfig.java index bd1fd9819..28bee3198 100644 --- a/src/main/java/com/gmail/nossr50/config/skills/salvage/SalvageConfig.java +++ b/src/main/java/com/gmail/nossr50/config/skills/salvage/SalvageConfig.java @@ -39,6 +39,7 @@ public class SalvageConfig extends ConfigLoader { Set keys = section.getKeys(false); //Original version of 1.16 support had maximum quantities that were bad, this fixes it + if(mcMMO.getUpgradeManager().shouldUpgrade(UpgradeType.FIX_NETHERITE_SALVAGE_QUANTITIES)) { mcMMO.p.getLogger().info("Fixing incorrect Salvage quantities on Netherite gear, this will only run once..."); for(String namespacedkey : mcMMO.getMaterialMapStore().getNetheriteArmor()) { @@ -47,7 +48,7 @@ public class SalvageConfig extends ConfigLoader { try { config.save(getFile()); -// mcMMO.getUpgradeManager().setUpgradeCompleted(UpgradeType.FIX_NETHERITE_SALVAGE_QUANTITIES); + mcMMO.getUpgradeManager().setUpgradeCompleted(UpgradeType.FIX_NETHERITE_SALVAGE_QUANTITIES); mcMMO.p.getLogger().info("Fixed incorrect Salvage quantities for Netherite gear!"); } catch (IOException e) { mcMMO.p.getLogger().info("Unable to fix Salvage config, please delete the salvage yml file to generate a new one."); diff --git a/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java b/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java index 7c687797a..e5d3a481a 100644 --- a/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java +++ b/src/main/java/com/gmail/nossr50/util/compat/CompatibilityManager.java @@ -113,6 +113,11 @@ public class CompatibilityManager { return NMSVersion.NMS_1_14_4; case 15: return NMSVersion.NMS_1_15_2; + case 16: + switch(minecraftGameVersion.getPatchVersion().asInt()) { + case 1: + return NMSVersion.NMS_1_16_1; + } } } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 9306f5d8f..4fe07127c 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -336,10 +336,8 @@ Skills: Enabled_For_PVP: true Enabled_For_PVE: true Level_Cap: 0 - Ability_Activation_Level_Gate: 10 Excavation: Level_Cap: 0 - Ability_Activation_Level_Gate: 10 Fishing: Level_Cap: 0 Drops_Enabled: true @@ -353,7 +351,6 @@ Skills: Mining: Level_Cap: 0 Detonator_Name: FLINT_AND_STEEL - Ability_Activation_Level_Gate: 10 Repair: Level_Cap: 0 Anvil_Messages: true @@ -376,7 +373,6 @@ Skills: Enabled_For_PVP: true Enabled_For_PVE: true Level_Cap: 0 - Ability_Activation_Level_Gate: 10 Taming: Enabled_For_PVP: true Enabled_For_PVE: true @@ -409,7 +405,6 @@ Skills: Enabled_For_PVP: true Enabled_For_PVE: true Level_Cap: 0 - Ability_Activation_Level_Gate: 10 Block_Cracker: SmoothBrick_To_CrackedBrick: true # When using Unarmed, picked up items will automatically get moved to a free slot instead of going in the slot @@ -420,7 +415,6 @@ Skills: Woodcutting: Tree_Feller_Sounds: true Level_Cap: 0 - Ability_Activation_Level_Gate: 10 # # Settings for Double Drops