diff --git a/MuzikaGromche/DiscoBallManager.cs b/MuzikaGromche/DiscoBallManager.cs index 03cdf8f..af5c19d 100644 --- a/MuzikaGromche/DiscoBallManager.cs +++ b/MuzikaGromche/DiscoBallManager.cs @@ -50,37 +50,10 @@ namespace MuzikaGromche ]; Patches = [.. patchDescriptors.Select(d => - new TilePatch(d.TileName, HotFixPrefab(d.PrefabPath, assetBundle.LoadAsset(d.PrefabPath))) + new TilePatch(d.TileName, assetBundle.LoadAsset(d.PrefabPath)) )]; } - static GameObject HotFixPrefab(string PrefabPath, GameObject gameObject) - { - // beacause I can't be bothered to reassemble the asset bundle - if (PrefabPath == "Assets/LethalCompany/Mods/MuzikaGromche/DiscoBallContainerFactory.prefab") - { - void RemoveGameObject(string gameObjectPath) - { - var transform = gameObject.transform.Find(gameObjectPath); - if (transform != null) - { - UnityEngine.Object.Destroy(transform.gameObject); - } - } - RemoveGameObject("DiscoBallProp1"); - RemoveGameObject("DiscoBallProp2"); - - var discoBall = gameObject.transform.Find("DiscoBallProp3"); - if (discoBall != null) - { - var position = discoBall.position; - position.y -= 5f; - discoBall.position = position; - } - } - return gameObject; - } - internal static void Patch(Tile tile) { var query = from patch in Patches diff --git a/MuzikaGromche/UnityAssets/muzikagromche_discoball b/MuzikaGromche/UnityAssets/muzikagromche_discoball index 18cf910..20d463e 100644 Binary files a/MuzikaGromche/UnityAssets/muzikagromche_discoball and b/MuzikaGromche/UnityAssets/muzikagromche_discoball differ