We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23a58e commit d1bd975Copy full SHA for d1bd975
1 file changed
S1API/Property/PropertyWrapper.cs
@@ -1,5 +1,7 @@
1
+using System.Collections;
2
using System.Collections.Generic;
3
using UnityEngine;
4
+using S1API.Internal.Utils;
5
#if IL2CPPMELON
6
using Il2CppTMPro;
7
using Il2CppScheduleOne.Money;
@@ -166,7 +168,7 @@ public bool IsContentCulled
166
168
/// Gets the number of buildable items currently placed in this property.
167
169
/// </summary>
170
public int BuildableItemCount =>
- InnerProperty.BuildableItems.Count;
171
+ (ReflectionUtils.TryGetFieldOrProperty(InnerProperty, "BuildableItems") as IList)?.Count ?? 0;
172
173
/// <summary>
174
/// Gets the position of the NPC spawn point for this property.
0 commit comments