1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 04:13:32 +08:00

CheatEnabler v2.2.7

This commit is contained in:
2023-10-07 16:46:13 +08:00
parent 0c48691dc9
commit d0bc5cf1d4
8 changed files with 79 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Reflection.Emit;
using BepInEx.Configuration;
using HarmonyLib;
@@ -620,6 +621,7 @@ public static class FactoryPatch
public static void OnAltFormatChanged()
{
if (_signalBelts == null) return;
var factories = GameMain.data?.factories;
if (factories == null) return;
var factoryCount = GameMain.data.factoryCount;
@@ -632,6 +634,7 @@ public static class FactoryPatch
var entitySignPool = factory.entitySignPool;
if (entitySignPool == null) continue;
var belts = _signalBelts[i];
if (belts == null) continue;
foreach (var pair in belts)
{
var beltId = pair.Key;