using BepInEx; using Comfort.Common; using EFT; using EFT.Interactive; using System.Linq; using UnityEngine; namespace BushWhacker { [BepInPlugin("com.cwx.bushwhacker", "cwx-bushwhacker", "1.0.0")] public class BushWhacker : BaseUnityPlugin { public void Start() { new Patch().Enable(); } public static void DisableBushes() { var bushes = FindObjectsOfType().ToList(); foreach (var bushesItem in bushes) { var filbert = bushesItem?.transform?.parent?.gameObject?.name?.Contains("filbert"); var fibert = bushesItem?.transform?.parent?.gameObject?.name?.Contains("fibert"); if (filbert == true || fibert == true) { DestroyImmediate(bushesItem); } } } } }