Use task engine/sync to update instances

This commit is contained in:
Jozufozu 2021-12-17 02:17:39 -08:00
parent 3e01d3f441
commit 94a160699c

View file

@ -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<RenderedContraption> contraption;
ContraptionInstanceManager(RenderedContraption contraption, MaterialManager materialManager) {
super(materialManager);
super(ImmediateExecutor.INSTANCE, materialManager);
this.contraption = new WeakReference<>(contraption);
}