diff --git a/gradle.properties b/gradle.properties index a9db4420b..a7ce3512d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ parchment_version = 2021.10.31 # dependency versions registrate_version = MC1.18-1.0.21 -flywheel_version = 1.18-0.3.0.3 +flywheel_version = 1.18-0.3.0.4 jei_version = 9.0.0.40 # curseforge information diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionGroup.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionGroup.java index 23a07a6b8..cdcb47620 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionGroup.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/render/ContraptionGroup.java @@ -3,12 +3,14 @@ package com.simibubi.create.content.contraptions.components.structureMovement.re import com.jozufozu.flywheel.backend.material.instancing.InstancedMaterialGroup; import com.jozufozu.flywheel.backend.material.instancing.InstancingEngine; +import net.minecraft.client.renderer.RenderType; + public class ContraptionGroup

extends InstancedMaterialGroup

{ private final RenderedContraption contraption; - public ContraptionGroup(RenderedContraption contraption, InstancingEngine

owner) { - super(owner); + public ContraptionGroup(RenderedContraption contraption, InstancingEngine

owner, RenderType type) { + super(owner, type); this.contraption = contraption; } @@ -19,6 +21,6 @@ public class ContraptionGroup

extends InstancedMat } public static

InstancingEngine.GroupFactory

forContraption(RenderedContraption c) { - return (materialManager) -> new ContraptionGroup<>(c, materialManager); + return (materialManager, type) -> new ContraptionGroup<>(c, materialManager, type); } }