mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-15 15:16:06 +01:00
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:
parent
72a392aca2
commit
d5dddba8bc
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user