mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 22:44:07 +01:00
Use task engine/sync to update instances
This commit is contained in:
parent
3e01d3f441
commit
94a160699c
@ -8,6 +8,7 @@ import javax.annotation.Nullable;
|
|||||||
import org.apache.commons.lang3.tuple.Pair;
|
import org.apache.commons.lang3.tuple.Pair;
|
||||||
|
|
||||||
import com.jozufozu.flywheel.api.MaterialManager;
|
import com.jozufozu.flywheel.api.MaterialManager;
|
||||||
|
import com.jozufozu.flywheel.backend.instancing.ImmediateExecutor;
|
||||||
import com.jozufozu.flywheel.backend.instancing.tile.TileInstanceManager;
|
import com.jozufozu.flywheel.backend.instancing.tile.TileInstanceManager;
|
||||||
import com.simibubi.create.AllMovementBehaviours;
|
import com.simibubi.create.AllMovementBehaviours;
|
||||||
import com.simibubi.create.content.contraptions.components.structureMovement.MovementBehaviour;
|
import com.simibubi.create.content.contraptions.components.structureMovement.MovementBehaviour;
|
||||||
@ -24,7 +25,7 @@ public class ContraptionInstanceManager extends TileInstanceManager {
|
|||||||
private final WeakReference<RenderedContraption> contraption;
|
private final WeakReference<RenderedContraption> contraption;
|
||||||
|
|
||||||
ContraptionInstanceManager(RenderedContraption contraption, MaterialManager materialManager) {
|
ContraptionInstanceManager(RenderedContraption contraption, MaterialManager materialManager) {
|
||||||
super(materialManager);
|
super(ImmediateExecutor.INSTANCE, materialManager);
|
||||||
this.contraption = new WeakReference<>(contraption);
|
this.contraption = new WeakReference<>(contraption);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user