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);