From 8101f19611e86a9bda7f319066e603ede46d997f Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Fri, 10 Dec 2021 00:28:33 -0800 Subject: [PATCH] Worlds are bigger now - Stop clamping Y in [0, 256) --- .../components/structureMovement/ContraptionLighter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionLighter.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionLighter.java index 90d04830e..20047a97a 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionLighter.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/ContraptionLighter.java @@ -52,9 +52,8 @@ public abstract class ContraptionLighter implements Light } protected void growBoundsForEdgeData() { - bounds.grow(2); // so we have at least enough data on the edges to avoid artifacts and have smooth lighting - bounds.setMinY(Math.max(bounds.getMinY(), 0)); - bounds.setMaxY(Math.min(bounds.getMaxY(), 255)); + // so we have at least enough data on the edges to avoid artifacts and have smooth lighting + bounds.grow(2); } @Override