From dca4b908447680f4bb7b9def83dd130e5ead3469 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Sat, 11 Jun 2022 07:28:18 -0700 Subject: [PATCH] Don't explode on light data in the nether It shouldn't be there but whatever --- patches/server/Rewrite-the-light-engine.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Rewrite-the-light-engine.patch b/patches/server/Rewrite-the-light-engine.patch index 47fe6666c..56d8c1981 100644 --- a/patches/server/Rewrite-the-light-engine.patch +++ b/patches/server/Rewrite-the-light-engine.patch @@ -5136,7 +5136,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // is forced to re-light them if it encounters our data. It's too much of a burden + // to try and maintain compatibility with a broken and inferior skylight management system. + skyNibbles[y - minSection] = new ca.spottedleaf.starlight.common.light.SWMRNibbleArray(sectionData.getByteArray("SkyLight").clone(), sectionData.getInt(SKYLIGHT_STATE_TAG)); // clone for data safety -+ } else { ++ } else if (flag1) { + skyNibbles[y - minSection] = new ca.spottedleaf.starlight.common.light.SWMRNibbleArray(null, sectionData.getInt(SKYLIGHT_STATE_TAG)); } + // Paper end - rewrite the light engine