From f4543eca55e3dffab89cbc54d8e419efa92c8e1c Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sat, 9 Jul 2022 21:04:29 -0700 Subject: [PATCH] remove the thingies that dont work lol --- NewHorizons/Builder/Props/DetailBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NewHorizons/Builder/Props/DetailBuilder.cs b/NewHorizons/Builder/Props/DetailBuilder.cs index 9c349a32..18072a84 100644 --- a/NewHorizons/Builder/Props/DetailBuilder.cs +++ b/NewHorizons/Builder/Props/DetailBuilder.cs @@ -112,10 +112,12 @@ namespace NewHorizons.Builder.Props foreach (var component in prop.GetComponentsInChildren(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)); + */ // Fix a bunch of sector stuff if (sector != null) @@ -150,6 +152,7 @@ namespace NewHorizons.Builder.Props { behaviour.SetSector(sector); } + /* else { // BUG: this doesnt find the field cuz _sector is private @@ -159,6 +162,7 @@ namespace NewHorizons.Builder.Props Main.Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => sectorField.SetValue(component, sector)); } } + */ if (component is AnglerfishController angler) {