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 f55daf85c..6e86565a1 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 @@ -24,7 +24,7 @@ public abstract class ContraptionLighter implements Light lightUpdater = LightUpdater.get(contraption.entity.level); bounds = getContraptionBounds(); - growBoundsForEdgeData(); + growBoundsForEdgeData(bounds); lightVolume = new GPULightVolume(bounds); @@ -51,7 +51,7 @@ public abstract class ContraptionLighter implements Light lightVolume.onLightPacket(world, chunkX, chunkZ); } - protected void growBoundsForEdgeData() { + protected static void growBoundsForEdgeData(GridAlignedBB bounds) { // so we have at least enough data on the edges to avoid artifacts and have smooth lighting bounds.grow(2); } diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/NonStationaryLighter.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/NonStationaryLighter.java index 1249efaa8..af146da53 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/NonStationaryLighter.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/NonStationaryLighter.java @@ -18,11 +18,11 @@ public class NonStationaryLighter extends ContraptionLigh ImmutableBox contraptionBounds = getContraptionBounds(); - if (bounds.sameAs(contraptionBounds)) { + if (bounds.sameAs(contraptionBounds, 2)) { return false; } bounds.assign(contraptionBounds); - growBoundsForEdgeData(); + growBoundsForEdgeData(bounds); lightVolume.move(provider, bounds);