Code updates
This commit is contained in:
parent
34e0013ff4
commit
b51696fb45
6 changed files with 203 additions and 76 deletions
18
Patches/DisplayManager_GetLabeledEmptyDisplaySlots_Patch.cs
Normal file
18
Patches/DisplayManager_GetLabeledEmptyDisplaySlots_Patch.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using HarmonyLib;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace DisableShelves
|
||||
{
|
||||
public static partial class ShelfLabelPatch
|
||||
{
|
||||
[HarmonyPatch(typeof(DisplayManager), "GetLabeledEmptyDisplaySlots")]
|
||||
public static class DisplayManager_GetLabeledEmptyDisplaySlots_Patch
|
||||
{
|
||||
public static void Postfix(ref List<DisplaySlot> __result)
|
||||
{
|
||||
__result = __result.Where(x => x.GetLabel().IsEnabled()).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue