mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
WIP for UXAssist 1.2.16
This commit is contained in:
1 parent
043e7a8e70
commit
087ceac1e3
8 files changed
+67
-3
No files matched your search
@@ -0,0 +1,13 @@
|
||||
namespace UXAssist.Functions;
|
||||
|
||||
public static class FactoryFunctions
|
||||
{
|
||||
public static void CutConveyorBelt(CargoTraffic cargoTraffic, int beltId)
|
||||
{
|
||||
ref var belt = ref cargoTraffic.beltPool[beltId];
|
||||
if (belt.id != beltId || belt.outputId <= 0) return;
|
||||
var (i0, i1, i2) = (belt.rightInputId, belt.backInputId, belt.leftInputId);
|
||||
cargoTraffic._arrInputs(ref i0, ref i1, ref i2);
|
||||
cargoTraffic.AlterBeltConnections(beltId, 0, i0, i1, i2);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user