mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 03:49:05 +00:00
Reduce micro material clash to warning
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user