mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
record bugs (but dont fix em lol)
This commit is contained in:
parent
baa25a73ae
commit
5ca76f3187
@ -113,6 +113,7 @@ namespace NewHorizons.Builder.Props
|
||||
foreach (var component in prop.GetComponentsInChildren<Component>(true))
|
||||
{
|
||||
// Enable all children or something
|
||||
// BUG doesnt work because enabled is a property, not a field
|
||||
var enabledField = component?.GetType()?.GetField("enabled");
|
||||
if (enabledField != null && enabledField.FieldType == typeof(bool)) Main.Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => enabledField.SetValue(component, true));
|
||||
|
||||
@ -151,6 +152,7 @@ namespace NewHorizons.Builder.Props
|
||||
}
|
||||
else
|
||||
{
|
||||
// BUG: this doesnt find the field cuz _sector is private
|
||||
var sectorField = component?.GetType()?.GetField("_sector");
|
||||
if (sectorField != null && sectorField.FieldType == typeof(Sector))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user