Attempt to fix multipart placement issue

This commit is contained in:
Robert S 2014-09-19 16:23:00 -04:00
parent 9a3be97106
commit 00ab7e912b

View file

@ -27,5 +27,11 @@ object ResonantPartFactory extends IPartFactory
MultipartGenerator.registerTrait("universalelectricity.api.core.grid.INodeProvider", "resonantinduction.core.prefab.TNodeProvider") MultipartGenerator.registerTrait("universalelectricity.api.core.grid.INodeProvider", "resonantinduction.core.prefab.TNodeProvider")
} }
def createPart(name: String, client: Boolean): TMultiPart = partMap(name).newInstance() def createPart(name: String, client: Boolean): TMultiPart =
{
if(partMap.contains(name))
return partMap(name).newInstance()
else
return null
}
} }