Skip to content

Commit

Permalink
remove unnecessary LMS patch
Browse files Browse the repository at this point in the history
  • Loading branch information
katycat5e committed Feb 5, 2025
1 parent 84609b6 commit 8eed47f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 52 deletions.
1 change: 0 additions & 1 deletion SkinManagerMod/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public static bool Load(UnityModManager.ModEntry modEntry)

UnloadWatcher.UnloadRequested += PaintFactory.DestroyInjectedShopData;

LocoMeshSplitterPatches.Initialize();
Harmony = new Harmony(Constants.MOD_ID);
Harmony.PatchAll(Assembly.GetExecutingAssembly());

Expand Down
5 changes: 4 additions & 1 deletion SkinManagerMod/Patches/CarPatches.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using DV.Customization.Paint;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
Expand All @@ -23,13 +24,15 @@ private static void BaseSpawn(TrainCar __result, bool uniqueCar)
__result.gameObject.SetActive(false);

var paintExt = __result.gameObject.AddComponent<TrainCarPaint>();
paintExt.sets = Array.Empty<TrainCarPaint.MaterialSet>();
paintExt.targetArea = TrainCarPaint.Target.Exterior;
paintExt.currentTheme = SkinProvider.CustomDefaultTheme;
__result.PaintExterior = paintExt;

if (__result.carLivery.interiorPrefab)
{
var paintInt = __result.gameObject.AddComponent<TrainCarPaint>();
paintInt.sets = Array.Empty<TrainCarPaint.MaterialSet>();
paintInt.targetArea = TrainCarPaint.Target.Interior;
paintInt.currentTheme = SkinProvider.CustomDefaultTheme;
__result.PaintInterior = paintInt;
Expand Down Expand Up @@ -66,7 +69,7 @@ public static void BeforeInitializePaint(GameObject obj)

foreach (var paint in obj.GetComponents<TrainCarPaint>())
{
Object.Destroy(paint);
UnityEngine.Object.Destroy(paint);
}
}

Expand Down
50 changes: 0 additions & 50 deletions SkinManagerMod/Patches/LocoMeshSplitterPatches.cs

This file was deleted.

0 comments on commit 8eed47f

Please sign in to comment.