mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix chunk yPos
This commit is contained in:
parent
fab197034e
commit
f6b844e53c
@ -137,8 +137,7 @@ public class BukkitChunk_1_13 extends IntFaweChunk<Chunk, BukkitQueue_1_13> {
|
||||
}
|
||||
|
||||
public ChunkSection copy(ChunkSection current) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException {
|
||||
int y = current.getYPosition();
|
||||
ChunkSection newSection = new ChunkSection(y, current.getSkyLightArray() != null);
|
||||
ChunkSection newSection = new ChunkSection(current.getYPosition(), current.getSkyLightArray() != null);
|
||||
|
||||
// Copy light
|
||||
NibbleArray skyLight = current.getSkyLightArray();
|
||||
|
@ -844,9 +844,9 @@ public class BukkitQueue_1_13 extends BukkitQueue_0<net.minecraft.server.v1_13_R
|
||||
|
||||
public static ChunkSection newChunkSection(int y2, boolean flag, int[] blocks) {
|
||||
if (blocks == null) {
|
||||
return new ChunkSection(y2, flag);
|
||||
return new ChunkSection(y2 << 4, flag);
|
||||
} else {
|
||||
ChunkSection section = new ChunkSection(y2, flag);
|
||||
ChunkSection section = new ChunkSection(y2 << 4, flag);
|
||||
|
||||
int[] blockToPalette = FaweCache.BLOCK_TO_PALETTE.get();
|
||||
int[] paletteToBlock = FaweCache.PALETTE_TO_BLOCK.get();
|
||||
|
Loading…
Reference in New Issue
Block a user