mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fix excavation treasures
This commit is contained in:
parent
755787f9ee
commit
c054ff851a
@ -33,7 +33,7 @@ public class TreasureConfig extends ConfigLoader {
|
|||||||
|
|
||||||
private static TreasureConfig instance;
|
private static TreasureConfig instance;
|
||||||
|
|
||||||
public HashMap<Material, List<ExcavationTreasure>> excavationMap = new HashMap<Material, List<ExcavationTreasure>>();
|
public HashMap<String, List<ExcavationTreasure>> excavationMap = new HashMap<String, List<ExcavationTreasure>>();
|
||||||
|
|
||||||
public HashMap<EntityType, List<ShakeTreasure>> shakeMap = new HashMap<EntityType, List<ShakeTreasure>>();
|
public HashMap<EntityType, List<ShakeTreasure>> shakeMap = new HashMap<EntityType, List<ShakeTreasure>>();
|
||||||
public HashMap<String, List<HylianTreasure>> hylianMap = new HashMap<String, List<HylianTreasure>>();
|
public HashMap<String, List<HylianTreasure>> hylianMap = new HashMap<String, List<HylianTreasure>>();
|
||||||
@ -302,10 +302,9 @@ public class TreasureConfig extends ConfigLoader {
|
|||||||
List<String> dropList = config.getStringList(type + "." + treasureName + ".Drops_From");
|
List<String> dropList = config.getStringList(type + "." + treasureName + ".Drops_From");
|
||||||
|
|
||||||
for (String blockType : dropList) {
|
for (String blockType : dropList) {
|
||||||
Material mat = Material.matchMaterial(blockType);
|
if (!excavationMap.containsKey(blockType))
|
||||||
if (!excavationMap.containsKey(mat))
|
excavationMap.put(blockType, new ArrayList<ExcavationTreasure>());
|
||||||
excavationMap.put(mat, new ArrayList<ExcavationTreasure>());
|
excavationMap.get(blockType).add(excavationTreasure);
|
||||||
excavationMap.get(mat).add(excavationTreasure);
|
|
||||||
}
|
}
|
||||||
} else if (isHylian) {
|
} else if (isHylian) {
|
||||||
HylianTreasure hylianTreasure = new HylianTreasure(item, xp, dropChance, dropLevel);
|
HylianTreasure hylianTreasure = new HylianTreasure(item, xp, dropChance, dropLevel);
|
||||||
|
Loading…
Reference in New Issue
Block a user