mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-23 08:01:52 +01:00
Fix chunk lighting for deep water (no skylight data)
This commit is contained in:
parent
69eb2e73c5
commit
e74741b7bd
@ -85,7 +85,7 @@ public class MapChunkCache114_1 extends AbstractMapChunkCache {
|
||||
public StdSection() {
|
||||
states = new DynmapBlockState[BLOCKS_PER_SECTION];
|
||||
Arrays.fill(states, DynmapBlockState.AIR);
|
||||
skylight = fullData;
|
||||
skylight = emptyData;
|
||||
emitlight = emptyData;
|
||||
}
|
||||
@Override
|
||||
@ -209,7 +209,9 @@ public class MapChunkCache114_1 extends AbstractMapChunkCache {
|
||||
}
|
||||
}
|
||||
}
|
||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||
if (sec.hasKey("BlockLight")) {
|
||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||
}
|
||||
if (sec.hasKey("SkyLight")) {
|
||||
cursect.skylight = sec.getByteArray("SkyLight");
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class MapChunkCache114 extends AbstractMapChunkCache {
|
||||
public StdSection() {
|
||||
states = new DynmapBlockState[BLOCKS_PER_SECTION];
|
||||
Arrays.fill(states, DynmapBlockState.AIR);
|
||||
skylight = fullData;
|
||||
skylight = emptyData;
|
||||
emitlight = emptyData;
|
||||
}
|
||||
@Override
|
||||
@ -209,7 +209,9 @@ public class MapChunkCache114 extends AbstractMapChunkCache {
|
||||
}
|
||||
}
|
||||
}
|
||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||
if (sec.hasKey("BlockLight")) {
|
||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||
}
|
||||
if (sec.hasKey("SkyLight")) {
|
||||
cursect.skylight = sec.getByteArray("SkyLight");
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public class MapChunkCache115 extends AbstractMapChunkCache {
|
||||
public StdSection() {
|
||||
states = new DynmapBlockState[BLOCKS_PER_SECTION];
|
||||
Arrays.fill(states, DynmapBlockState.AIR);
|
||||
skylight = fullData;
|
||||
skylight = emptyData;
|
||||
emitlight = emptyData;
|
||||
}
|
||||
@Override
|
||||
@ -212,7 +212,9 @@ public class MapChunkCache115 extends AbstractMapChunkCache {
|
||||
}
|
||||
}
|
||||
}
|
||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||
if (sec.hasKey("BlockLight")) {
|
||||
cursect.emitlight = sec.getByteArray("BlockLight");
|
||||
}
|
||||
if (sec.hasKey("SkyLight")) {
|
||||
cursect.skylight = sec.getByteArray("SkyLight");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user