From 7e3671fa9a6cd672f49a11d8b184b6e19ce17b5c Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Mon, 18 Jul 2022 10:06:16 -0700 Subject: [PATCH] Wrap vanilla models for shade separation - Flywheel version of Fabricators-of-Create/Create#441 --- .../com/jozufozu/flywheel/core/model/WorldModelBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/jozufozu/flywheel/core/model/WorldModelBuilder.java b/src/main/java/com/jozufozu/flywheel/core/model/WorldModelBuilder.java index a90462e49..83f760618 100644 --- a/src/main/java/com/jozufozu/flywheel/core/model/WorldModelBuilder.java +++ b/src/main/java/com/jozufozu/flywheel/core/model/WorldModelBuilder.java @@ -53,9 +53,9 @@ public final class WorldModelBuilder implements Bufferable { } else { model = CullingBakedModel.wrap(model); model = LayerFilteringBakedModel.wrap(model, layer); - if (consumer instanceof ShadeSeparatingVertexConsumer shadeSeparatingWrapper) { - model = shadeSeparatingWrapper.wrapModel(model); - } + } + if (consumer instanceof ShadeSeparatingVertexConsumer shadeSeparatingWrapper) { + model = shadeSeparatingWrapper.wrapModel(model); } BlockPos pos = info.pos;