From 0d3551c84b965fbbd4c0442878c9c325fbd36784 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 29 Mar 2019 18:11:32 -0700 Subject: [PATCH] Adding missing Double Drop entries for Woodcutting --- Changelog.txt | 7 +++++-- src/main/java/com/gmail/nossr50/config/Config.java | 3 +++ src/main/resources/config.yml | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 740f37af4..9a4a48984 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -153,10 +153,13 @@ Version 2.2.0 Version 2.1.30 Fixed double drops behaving oddly + Double_Drop config table has been renamed to Bonus_Drops, this is to jankily auto-update everyones config DoubleDrop config tables now must contain all things that can possibly be doubled, such as the Ore block, the ore itself, etc. - Added the following items to the DoubleDrop tables for Mining: Coal, Diamond, Emerald, Glowstone_Dust, Iron_Ingot, Lapis_Lazuli, Nether_Quartz, Redstone, Cobblestone - Added the following items to the DoubleDrop tables for Herbalism: Beetroot, Carrot, Cocoa_Beans, Melon_Slice, Potatoe + Added the following items to the Bonus_Drops tables for Mining: Coal, Diamond, Emerald, Glowstone_Dust, Iron_Ingot, Lapis_Lazuli, Nether_Quartz, Redstone, Cobblestone + Added the following items to the Bonus_Drops tables for Herbalism: Beetroot, Carrot, Cocoa_Beans, Melon_Slice, Potatoe + Added the following items to the Bonus_Drops tables for Woodcutting: Birch_Wood, Spruce_Wood, Jungle_Wood, Dark_Oak_Wood, Oak_Wood, Acacia_Wood + NOTE: You don't need to update your configs for this one unless you had custom entries in the Double_Drop tables, the renaming of the key will auto-insert default values and give everyone correct defaults NOTE: I'm gonna have to blame Bukkit on this one, several API methods I used are actually unfinished and kind of janky. So I hacked something together to make them work. Version 2.1.29 diff --git a/src/main/java/com/gmail/nossr50/config/Config.java b/src/main/java/com/gmail/nossr50/config/Config.java index ff95df343..2bada82d9 100644 --- a/src/main/java/com/gmail/nossr50/config/Config.java +++ b/src/main/java/com/gmail/nossr50/config/Config.java @@ -1,12 +1,15 @@ package com.gmail.nossr50.config; import com.gmail.nossr50.mcMMO; +import com.gmail.nossr50.skills.woodcutting.Woodcutting; +import com.gmail.nossr50.util.StringUtils; import com.google.common.io.Files; import com.google.common.reflect.TypeToken; import ninja.leaping.configurate.commented.CommentedConfigurationNode; import ninja.leaping.configurate.hocon.HoconConfigurationLoader; import ninja.leaping.configurate.loader.ConfigurationLoader; import ninja.leaping.configurate.objectmapping.ObjectMappingException; +import org.bukkit.Material; import java.io.File; import java.io.IOException; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 158042536..f156cf146 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -419,7 +419,7 @@ Skills: # # Settings for Double Drops ### -Double_Drops: +Bonus_Drops: Herbalism: Beetroots: true Beetroot: true @@ -483,11 +483,17 @@ Double_Drops: Stone: true Cobblestone: true Woodcutting: + Acacia_Wood: true Acacia_Log: true + Birch_Wood: true Birch_Log: true + Dark_Oak_Wood: true Dark_Oak_Log: true + Oak_Wood: true Oak_Log: true + Jungle_Wood: true Jungle_Log: true + Spruce_Wood: true Spruce_Log: true #