Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Allow skylight to be set to null (#3396)
Dieser Commit ist enthalten in:
Ursprung
6377721ebd
Commit
c1cd8bc03e
@ -47,6 +47,11 @@ public class ChunkSectionLightImpl implements ChunkSectionLight {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setSkyLight(byte[] data) {
|
public void setSkyLight(byte[] data) {
|
||||||
|
if (data == null) {
|
||||||
|
this.skyLight = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (data.length != LIGHT_LENGTH) throw new IllegalArgumentException("Data length != " + LIGHT_LENGTH);
|
if (data.length != LIGHT_LENGTH) throw new IllegalArgumentException("Data length != " + LIGHT_LENGTH);
|
||||||
if (this.skyLight == null) {
|
if (this.skyLight == null) {
|
||||||
this.skyLight = new NibbleArray(data);
|
this.skyLight = new NibbleArray(data);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren