mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 11:59:08 +00:00
Update build script
This commit is contained in:
1 parent
bd1a72e958
commit
3ffec4fa5b
3 files changed
+9
-8
No files matched your search
@@ -79,13 +79,14 @@ object MultiPartRegistry
|
||||
if (container == null)
|
||||
throw new IllegalStateException("Parts must be registered during the initialization phase of a mod container")
|
||||
|
||||
types.foreach {
|
||||
s =>
|
||||
if (typeMap.contains(s))
|
||||
throw new IllegalStateException("Part with id " + s + " is already registered.")
|
||||
types.foreach { s =>
|
||||
if (typeMap.contains(s))
|
||||
throw new IllegalStateException("Part with id " + s + " is already registered.")
|
||||
|
||||
typeMap.put(s, (c: Boolean) => partFactory(s, c))
|
||||
containers.put(s, container)
|
||||
logger.debug("Registered multipart: "+s)
|
||||
|
||||
typeMap.put(s, (c: Boolean) => partFactory(s, c))
|
||||
containers.put(s, container)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user