Code updates
This commit is contained in:
parent
f340b3e275
commit
a02e6eca56
2 changed files with 6 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<AssemblyName>NightShift</AssemblyName>
|
||||
<Description>My first plugin</Description>
|
||||
<Version>1.0.2</Version>
|
||||
<Version>1.0.3</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
|
@ -29,6 +29,9 @@
|
|||
<Reference Include="Assembly-CSharp" Publicize="true">
|
||||
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="AYellowpaper.SerializedCollections">
|
||||
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\AYellowpaper.SerializedCollections.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LeanPool">
|
||||
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\LeanPool.dll</HintPath>
|
||||
</Reference>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
using BepInEx;
|
||||
using HarmonyLib;
|
||||
using Lean.Pool;
|
||||
using MyBox;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
|
@ -15,7 +13,7 @@ namespace NightShift
|
|||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded! Applying patch...");
|
||||
//Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded! Applying patch...");
|
||||
Harmony harmony = new Harmony(PluginInfo.PLUGIN_GUID);
|
||||
harmony.PatchAll();
|
||||
}
|
||||
|
|
@ -25,7 +23,7 @@ namespace NightShift
|
|||
}
|
||||
public void InstantRestock()
|
||||
{
|
||||
Logger.LogWarning("Running instant restock");
|
||||
//Logger.LogWarning("Running instant restock");
|
||||
|
||||
var indexedRackSlots = Singleton<RackManager>.Instance.m_RackSlots.ToDictionary(x => x.Key, x => x.Value);
|
||||
foreach (var key in indexedRackSlots.Keys.ToArray())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue