From 734506b0105f0bc1ba6d04a648a01a9049b109ce Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:25:11 -0700 Subject: [PATCH] Fix #266 --- .../dev/engine_room/flywheel/lib/material/LightShaders.java | 2 +- .../dev/engine_room/flywheel/lib/material/SimpleMaterial.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/lib/java/dev/engine_room/flywheel/lib/material/LightShaders.java b/common/src/lib/java/dev/engine_room/flywheel/lib/material/LightShaders.java index 3e15c76ca..ac9e351cc 100644 --- a/common/src/lib/java/dev/engine_room/flywheel/lib/material/LightShaders.java +++ b/common/src/lib/java/dev/engine_room/flywheel/lib/material/LightShaders.java @@ -3,7 +3,7 @@ import dev.engine_room.flywheel.api.Flywheel; import dev.engine_room.flywheel.api.material.LightShader; -public class LightShaders { +public final class LightShaders { public static final LightShader SMOOTH_WHEN_EMBEDDED = new SimpleLightShader(Flywheel.rl("light/smooth_when_embedded.glsl")); public static final LightShader SMOOTH = new SimpleLightShader(Flywheel.rl("light/smooth.glsl")); public static final LightShader FLAT = new SimpleLightShader(Flywheel.rl("light/flat.glsl")); diff --git a/common/src/lib/java/dev/engine_room/flywheel/lib/material/SimpleMaterial.java b/common/src/lib/java/dev/engine_room/flywheel/lib/material/SimpleMaterial.java index cf271ed43..214712af4 100644 --- a/common/src/lib/java/dev/engine_room/flywheel/lib/material/SimpleMaterial.java +++ b/common/src/lib/java/dev/engine_room/flywheel/lib/material/SimpleMaterial.java @@ -178,6 +178,7 @@ public Builder copyFrom(Material material) { shaders = material.shaders(); fog = material.fog(); cutout = material.cutout(); + light = material.light(); texture = material.texture(); blur = material.blur(); mipmap = material.mipmap();