diff --git a/src/main/java/com/songoda/core/compatibility/LegacyMaterials.java b/src/main/java/com/songoda/core/compatibility/LegacyMaterials.java index d16489ff..39940d1e 100644 --- a/src/main/java/com/songoda/core/compatibility/LegacyMaterials.java +++ b/src/main/java/com/songoda/core/compatibility/LegacyMaterials.java @@ -1022,15 +1022,17 @@ public enum LegacyMaterials { private static final Map lookupMap = new HashMap(); static { - for (LegacyMaterials m : values()) { - lookupMap.put(m.name(), m); - lookupMap.put(m.material + ":" + (m.data == null ? "" : m.data), m); - } - for (LegacyMaterials m : values()) { - if (!lookupMap.containsKey(m.legacy)) { - lookupMap.put(m.legacy, m); - } - } + for (LegacyMaterials m : values()) { + lookupMap.put(m.name(), m); + if (!m.usesCompatibility()) { + lookupMap.put(m.material + ":" + (m.data == null ? "" : m.data), m); + } + } + for (LegacyMaterials m : values()) { + if (!m.usesCompatibility() && !lookupMap.containsKey(m.legacy)) { + lookupMap.put(m.legacy, m); + } + } } LegacyMaterials() {