Update build script

This commit is contained in:
Chicken-Bones committed 2014-04-28 19:43:34 +10:00
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)
}
}