From c054ff851acc36f66bb16da2b559b6183402c50a Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Wed, 14 Jun 2017 21:14:09 -0400 Subject: [PATCH] Fix excavation treasures --- .../gmail/nossr50/config/treasure/TreasureConfig.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java index 7f1ecea26..662ada3e1 100755 --- a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java +++ b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java @@ -33,7 +33,7 @@ public class TreasureConfig extends ConfigLoader { private static TreasureConfig instance; - public HashMap> excavationMap = new HashMap>(); + public HashMap> excavationMap = new HashMap>(); public HashMap> shakeMap = new HashMap>(); public HashMap> hylianMap = new HashMap>(); @@ -302,10 +302,9 @@ public class TreasureConfig extends ConfigLoader { List dropList = config.getStringList(type + "." + treasureName + ".Drops_From"); for (String blockType : dropList) { - Material mat = Material.matchMaterial(blockType); - if (!excavationMap.containsKey(mat)) - excavationMap.put(mat, new ArrayList()); - excavationMap.get(mat).add(excavationTreasure); + if (!excavationMap.containsKey(blockType)) + excavationMap.put(blockType, new ArrayList()); + excavationMap.get(blockType).add(excavationTreasure); } } else if (isHylian) { HylianTreasure hylianTreasure = new HylianTreasure(item, xp, dropChance, dropLevel);