1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 11:53:25 +08:00

CheatEnabler: Use proliferators for belt signal

This commit is contained in:
2026-03-11 04:06:51 +08:00
parent d6b00b1b78
commit a9ad961bd3
5 changed files with 118 additions and 29 deletions

View File

@@ -183,7 +183,8 @@ public class PersistPatch : PatchImpl<PersistPatch>
new CodeMatch(OpCodes.Ldfld, AccessTools.Field(typeof(NeutronStarHandler), nameof(NeutronStarHandler.streamRenderer))),
new CodeMatch(OpCodes.Callvirt, AccessTools.PropertyGetter(typeof(Renderer), nameof(Renderer.sharedMaterial)))
).RemoveInstructions(3).InsertAndAdvance(
Transpilers.EmitDelegate(() => {
Transpilers.EmitDelegate(() =>
{
return Configs.builtin.neutronStarPrefab.streamRenderer.sharedMaterial;
})
);