Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Fix #1243
Dieser Commit ist enthalten in:
Ursprung
2e0de7b197
Commit
1a0f7df3f4
@ -286,10 +286,12 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
|||||||
if (chunk.chunkSet.getSkyLight() != null) {
|
if (chunk.chunkSet.getSkyLight() != null) {
|
||||||
int layer = y >> 4;
|
int layer = y >> 4;
|
||||||
layer -= chunk.chunkSet.getMinSectionIndex();
|
layer -= chunk.chunkSet.getMinSectionIndex();
|
||||||
if (chunk.chunkSet.getSkyLight()[layer] != null) {
|
if (layer >= 0 && layer < chunk.chunkSet.getSectionCount()) {
|
||||||
int setLightValue = chunk.chunkSet.getSkyLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
if (chunk.chunkSet.getSkyLight()[layer] != null) {
|
||||||
if (setLightValue < 16) {
|
int setLightValue = chunk.chunkSet.getSkyLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
||||||
return setLightValue;
|
if (setLightValue < 16) {
|
||||||
|
return setLightValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -301,10 +303,12 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
|||||||
if (chunk.chunkSet.getLight() != null) {
|
if (chunk.chunkSet.getLight() != null) {
|
||||||
int layer = y >> 4;
|
int layer = y >> 4;
|
||||||
layer -= chunk.chunkSet.getMinSectionIndex();
|
layer -= chunk.chunkSet.getMinSectionIndex();
|
||||||
if (chunk.chunkSet.getLight()[layer] != null) {
|
if (layer >= 0 && layer < chunk.chunkSet.getSectionCount()) {
|
||||||
int setLightValue = chunk.chunkSet.getLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
if (chunk.chunkSet.getLight()[layer] != null) {
|
||||||
if (setLightValue < 16) {
|
int setLightValue = chunk.chunkSet.getLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
||||||
return setLightValue;
|
if (setLightValue < 16) {
|
||||||
|
return setLightValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -598,10 +602,12 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
|||||||
if (chunk.chunkSet.getSkyLight() != null) {
|
if (chunk.chunkSet.getSkyLight() != null) {
|
||||||
int layer = y >> 4;
|
int layer = y >> 4;
|
||||||
layer -= chunk.chunkSet.getMinSectionIndex();
|
layer -= chunk.chunkSet.getMinSectionIndex();
|
||||||
if (chunk.chunkSet.getSkyLight()[layer] != null) {
|
if (layer >= 0 && layer < chunk.chunkSet.getSectionCount()) {
|
||||||
int setLightValue = chunk.chunkSet.getSkyLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
if (chunk.chunkSet.getSkyLight()[layer] != null) {
|
||||||
if (setLightValue < 16) {
|
int setLightValue = chunk.chunkSet.getSkyLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
||||||
return setLightValue;
|
if (setLightValue < 16) {
|
||||||
|
return setLightValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -616,10 +622,12 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
|||||||
if (chunk.chunkSet.getLight() != null) {
|
if (chunk.chunkSet.getLight() != null) {
|
||||||
int layer = y >> 4;
|
int layer = y >> 4;
|
||||||
layer -= chunk.chunkSet.getMinSectionIndex();
|
layer -= chunk.chunkSet.getMinSectionIndex();
|
||||||
if (chunk.chunkSet.getLight()[layer] != null) {
|
if (layer >= 0 && layer < chunk.chunkSet.getSectionCount()) {
|
||||||
int setLightValue = chunk.chunkSet.getLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
if (chunk.chunkSet.getLight()[layer] != null) {
|
||||||
if (setLightValue < 16) {
|
int setLightValue = chunk.chunkSet.getLight()[layer][(y & 15) << 8 | (z & 15) << 4 | (x & 15)];
|
||||||
return setLightValue;
|
if (setLightValue < 16) {
|
||||||
|
return setLightValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren