Used the wrong method

This commit is contained in:
Nick 2022-10-08 13:35:15 -04:00
parent 6a4e670a51
commit 0991b36d67

View File

@ -70,7 +70,8 @@ namespace NewHorizons.Builder.Props
StreamingHandler.SetUpStreaming(prop, sector); StreamingHandler.SetUpStreaming(prop, sector);
var isTorch = prop.GetComponentInChildren<VisionTorchItem>() != null; // Could check this in the for loop but I'm not sure what order we need to know about this in
var isTorch = prop.GetComponent<VisionTorchItem>() != null;
var isItem = false; var isItem = false;
foreach (var component in prop.GetComponentsInChildren<Component>(true)) foreach (var component in prop.GetComponentsInChildren<Component>(true))