Skip to content

Commit 592faee

Browse files
authored
Merge pull request #67 from IlyaChichkov/develop
fix(api): In v1.5 Bill_Production class dont have RenamableLabel
2 parents e08dd38 + 524b4b8 commit 592faee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/RIMAPI/RimworldRestApi/Helpers/BillHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ public static BillDto ToDto(Bill_Production bill)
4646
IngredientSearchRadius = bill.ingredientSearchRadius,
4747
AllowedSkillRange = new IntRangeDto(bill.allowedSkillRange.min, bill.allowedSkillRange.max),
4848
PawnRestrictionId = bill.PawnRestriction?.thingIDNumber,
49+
#if RIMWORLD_1_5
50+
PlayerCustomName = "Not supported",
51+
#elif RIMWORLD_1_6
4952
PlayerCustomName = bill.RenamableLabel,
53+
#endif
5054
SlotGroupId = null,
5155
AllowedMaterials = bill.ingredientFilter?.AllowedThingDefs?.Select(d => d.defName).ToList() ?? new List<string>(),
5256
AvailableMaterials = bill.recipe.fixedIngredientFilter?.AllowedThingDefs?.Select(d => d.defName).ToList() ?? new List<string>(),

0 commit comments

Comments
 (0)