|
|
@@ -49,8 +49,7 @@ namespace TechbloxModdingAPI.Blocks |
|
|
|
{ |
|
|
|
if (_blockEntityFactory == null) |
|
|
|
throw new BlockException("The factory is null."); |
|
|
|
uint resourceId = (uint) PrefabsID.GenerateResourceID(0, block); |
|
|
|
if (!PrefabsID.PrefabIDByResourceIDMap.ContainsKey(resourceId)) |
|
|
|
if(!FullGameFields._dataDb.ContainsKey<CubeListData>(block)) |
|
|
|
throw new BlockException("Block with ID " + block + " not found!"); |
|
|
|
//RobocraftX.CR.MachineEditing.PlaceSingleBlockEngine |
|
|
|
DBEntityStruct dbEntity = new DBEntityStruct {DBID = block}; |
|
|
|