zz
This commit is contained in:
17
GlobalShared/Patches/MyConveyorLinePatch.cs
Normal file
17
GlobalShared/Patches/MyConveyorLinePatch.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Global.Shared.Patches;
|
||||
using HarmonyLib;
|
||||
using Sandbox.Game.GameSystems.Conveyors;
|
||||
|
||||
namespace Global.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(MyConveyorLine))]
|
||||
public class MyConveyorLinePatch
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(nameof(MyConveyorLine.UpdateIsWorking))]
|
||||
private static bool UpdateIsWorkingPrefix()
|
||||
{
|
||||
return !CubeGridPatch.IsInMergeGridInternal;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user