From 94a160699c71ec9ba752ea3f8560ee59a4437d61 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Fri, 17 Dec 2021 02:17:39 -0800 Subject: [PATCH] Use task engine/sync to update instances --- .../structureMovement/render/ContraptionInstanceManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionInstanceManager.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionInstanceManager.java index 94bfa5183..96e9b6f00 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionInstanceManager.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionInstanceManager.java @@ -8,6 +8,7 @@ import javax.annotation.Nullable; import org.apache.commons.lang3.tuple.Pair; import com.jozufozu.flywheel.api.MaterialManager; +import com.jozufozu.flywheel.backend.instancing.ImmediateExecutor; import com.jozufozu.flywheel.backend.instancing.tile.TileInstanceManager; import com.simibubi.create.AllMovementBehaviours; import com.simibubi.create.content.contraptions.components.structureMovement.MovementBehaviour; @@ -24,7 +25,7 @@ public class ContraptionInstanceManager extends TileInstanceManager { private final WeakReference contraption; ContraptionInstanceManager(RenderedContraption contraption, MaterialManager materialManager) { - super(materialManager); + super(ImmediateExecutor.INSTANCE, materialManager); this.contraption = new WeakReference<>(contraption); }