From efb68dc77627213d460c332482e436eb27ded0e9 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sat, 12 Oct 2024 16:36:20 -0700 Subject: [PATCH] All or nothing? - Actually add PipelineCompilers into the ALL list so they get deleted when uber components need updating --- .../flywheel/backend/compile/PipelineCompiler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/backend/java/dev/engine_room/flywheel/backend/compile/PipelineCompiler.java b/common/src/backend/java/dev/engine_room/flywheel/backend/compile/PipelineCompiler.java index 9804bd48d..23d405731 100644 --- a/common/src/backend/java/dev/engine_room/flywheel/backend/compile/PipelineCompiler.java +++ b/common/src/backend/java/dev/engine_room/flywheel/backend/compile/PipelineCompiler.java @@ -1,5 +1,6 @@ package dev.engine_room.flywheel.backend.compile; +import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -30,7 +31,7 @@ import dev.engine_room.flywheel.lib.util.ResourceUtil; import net.minecraft.resources.ResourceLocation; public final class PipelineCompiler { - private static final List ALL = List.of(); + private static final List ALL = new ArrayList<>(); private static final Compile PIPELINE = new Compile<>(); @@ -44,6 +45,7 @@ public final class PipelineCompiler { public PipelineCompiler(CompilationHarness harness) { this.harness = harness; + ALL.add(this); } public GlProgram get(InstanceType instanceType, ContextShader contextShader, Material material) {