Archived
0

обновление интерфейсов пакета mc.core.world.*

выделены методы для локальных и глобальных координат + добавлена документация
This commit is contained in:
2018-10-28 20:45:47 +03:00
parent 2e2fc13615
commit 58334591d0
7 changed files with 176 additions and 26 deletions

View File

@@ -150,11 +150,11 @@ public class ChunkDataPacket implements SCPacket {
for (int y = 0; y < 16; y++) {
for (int z = 0; z < 16; z++) {
for (int x = 0; x < 16; x++) {
palettedChunkSection.addBlock(chunkSection.getBlock(x, y, z));
palettedChunkSection.addSkyLight(chunkSection.getSkyLight(x, y, z));
palettedChunkSection.addBlock(chunkSection.getBlockLocal(x, y, z));
palettedChunkSection.addSkyLight(chunkSection.getSkyLightLocal(x, y, z));
if (biomeWrite) {
biomes.writeByte(chunkSection.getBiome(x, z).getId());
biomes.writeByte(chunkSection.getBiomeLocal(x, z).getId());
if (x == 15 && z == 15) {
biomeWrite = false;
}