Reduce micro material clash to warning

This commit is contained in:
Chicken-Bones committed 2014-02-24 14:45:19 +10:00
1 parent be48cfe17b
commit 2f2a18052a
1 file changed
+5 -3
@@ -126,9 +126,11 @@ object MicroMaterialRegistry
if(MultiPartRegistry.loaded)
throw new IllegalStateException("You must register your materials in the init methods.")
if(typeMap.contains(name))
throw new IllegalStateException("Material with id "+name+" is already registered.")
if(typeMap.contains(name)) {
System.err.println("Material with id "+name+" is already registered.")
return
}
System.out.println("Registered micro material: "+name)
typeMap.put(name, material)