From d0a660c0aef6a0d770987d878ee9d3cb777b8ffe Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Tue, 11 Jan 2022 20:15:33 -0800 Subject: [PATCH] Virtual rendering fixes - Fix blocks in schematic renders being too dark - Fix shafts and cogs fired from a schematicannon not rendering --- .../simibubi/create/content/schematics/SchematicWorld.java | 2 +- .../content/schematics/block/SchematicannonRenderer.java | 4 ++-- .../create/content/schematics/client/SchematicRenderer.java | 1 + .../create/foundation/ponder/element/WorldSectionElement.java | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/schematics/SchematicWorld.java b/src/main/java/com/simibubi/create/content/schematics/SchematicWorld.java index ec8cede76..57482f2da 100644 --- a/src/main/java/com/simibubi/create/content/schematics/SchematicWorld.java +++ b/src/main/java/com/simibubi/create/content/schematics/SchematicWorld.java @@ -142,7 +142,7 @@ public class SchematicWorld extends WrappedWorld implements ServerLevelAccessor @Override public int getBrightness(LightLayer p_226658_1_, BlockPos p_226658_2_) { - return 10; + return 15; } @Override diff --git a/src/main/java/com/simibubi/create/content/schematics/block/SchematicannonRenderer.java b/src/main/java/com/simibubi/create/content/schematics/block/SchematicannonRenderer.java index aacd56fab..4fb273f13 100644 --- a/src/main/java/com/simibubi/create/content/schematics/block/SchematicannonRenderer.java +++ b/src/main/java/com/simibubi/create/content/schematics/block/SchematicannonRenderer.java @@ -3,6 +3,7 @@ package com.simibubi.create.content.schematics.block; import java.util.Random; import com.jozufozu.flywheel.backend.Backend; +import com.jozufozu.flywheel.core.virtual.VirtualEmptyModelData; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import com.mojang.math.Vector3f; @@ -24,7 +25,6 @@ import net.minecraft.core.particles.ParticleTypes; import net.minecraft.util.Mth; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.phys.Vec3; -import net.minecraftforge.client.model.data.EmptyModelData; public class SchematicannonRenderer extends SafeTileEntityRenderer { @@ -172,7 +172,7 @@ public class SchematicannonRenderer extends SafeTileEntityRenderer