Don't explode on light data in the nether
It shouldn't be there but whatever
This commit is contained in:
@@ -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
|
+ // 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.
|
+ // 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
|
+ 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));
|
+ skyNibbles[y - minSection] = new ca.spottedleaf.starlight.common.light.SWMRNibbleArray(null, sectionData.getInt(SKYLIGHT_STATE_TAG));
|
||||||
}
|
}
|
||||||
+ // Paper end - rewrite the light engine
|
+ // Paper end - rewrite the light engine
|
||||||
|
|||||||
Reference in New Issue
Block a user