1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 02:53:29 +08:00

UXAssist 1.0.22

This commit is contained in:
2024-03-31 00:32:11 +08:00
parent 357b2781a2
commit b560c2c9ff
5 changed files with 18 additions and 9 deletions

View File

@@ -993,11 +993,8 @@ public static class FactoryPatch
{
if (!VFInput._chainReaction) return true;
var factory = dismantle.factory;
var entity = factory.entityPool[id];
var factorySystem = factory.factorySystem;
if (entity.labId <= 0 || entity.labId > factorySystem.labCursor) return true;
ref var lab = ref factory.factorySystem.labPool[entity.labId];
if (lab.id != entity.labId) return true;
var prefDesc = dismantle.GetPrefabDesc(id);
if (!prefDesc.isLab) return true;
factory.ReadObjectConn(id, 14, out _, out var nextId, out _);
/* We keep last lab if selected lab is not the ground one */
if (nextId > 0)