Attempt to fix multipart placement issue
This commit is contained in:
parent
9a3be97106
commit
00ab7e912b
1 changed files with 7 additions and 1 deletions
|
@ -27,5 +27,11 @@ object ResonantPartFactory extends IPartFactory
|
|||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue