исправление передачи данных block light
и эти костыли мне совсем не нравятся
This commit is contained in:
@@ -153,6 +153,7 @@ public class ChunkDataPacket implements SCPacket {
|
|||||||
for (int z = 0; z < 16; z++) {
|
for (int z = 0; z < 16; z++) {
|
||||||
for (int x = 15; x >= 0; x--) {
|
for (int x = 15; x >= 0; x--) {
|
||||||
palettedChunkSection.addBlock(chunkSection.getBlockLocal(x, y, z));
|
palettedChunkSection.addBlock(chunkSection.getBlockLocal(x, y, z));
|
||||||
|
palettedChunkSection.addBlockLight(15-x, y, z, chunkSection.getBlockLocal(15-x, y, z).getLight());
|
||||||
palettedChunkSection.addSkyLight(15-x, y, z, chunkSection.getSkyLightLocal(15-x, y, z));
|
palettedChunkSection.addSkyLight(15-x, y, z, chunkSection.getSkyLightLocal(15-x, y, z));
|
||||||
|
|
||||||
if (biomeWrite) {
|
if (biomeWrite) {
|
||||||
@@ -229,7 +230,6 @@ public class ChunkDataPacket implements SCPacket {
|
|||||||
void addBlock(Block block) {
|
void addBlock(Block block) {
|
||||||
BlockLocation location = block.getLocation().toLocal();
|
BlockLocation location = block.getLocation().toLocal();
|
||||||
blocks[coordsToIndex(location)] = addBlockType(block.getBlockType());
|
blocks[coordsToIndex(location)] = addBlockType(block.getBlockType());
|
||||||
addBlockLight(location.getX(), location.getY(), location.getZ(), block.getLight());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeToNetStream(final NetOutputStream netOutputStream) {
|
void writeToNetStream(final NetOutputStream netOutputStream) {
|
||||||
|
|||||||
Reference in New Issue
Block a user