Prevent exception with legacy materials.

Not sure what this legacy material layer is doing here, but it can
potentially throw exceptions when we add one to our material flags.
This commit is contained in:
wizjany 2019-02-03 19:28:59 -05:00
parent 72a392aca2
commit d5dddba8bc

View File

@ -621,7 +621,7 @@ public final class Materials {
MATERIAL_FLAGS.put(material, MODIFIED_ON_RIGHT);
}
if (!MATERIAL_FLAGS.containsKey(material)) {
logger.fine("Missing item definition for " + material.getKey().toString());
logger.fine("Missing item definition for " + material.name());
MATERIAL_FLAGS.put(material, 0);
}
}