forked from LogBlock/LogBlock
Legacy materials are not iterated, so don't have to check for that
This commit is contained in:
@ -25,11 +25,9 @@ public class MaterialConverter {
|
||||
|
||||
static {
|
||||
for (Material m : Material.values()) {
|
||||
if (!m.name().startsWith("LEGACY_") && m.getKey() != null) {
|
||||
materialKeyToMaterial.put(m.getKey().toString(), m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int getOrAddMaterialId(NamespacedKey nameSpaceKey) {
|
||||
return getOrAddMaterialId(nameSpaceKey.toString());
|
||||
|
Reference in New Issue
Block a user