mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +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 {
|
public ChunkSection copy(ChunkSection current) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException {
|
||||||
int y = current.getYPosition();
|
ChunkSection newSection = new ChunkSection(current.getYPosition(), current.getSkyLightArray() != null);
|
||||||
ChunkSection newSection = new ChunkSection(y, current.getSkyLightArray() != null);
|
|
||||||
|
|
||||||
// Copy light
|
// Copy light
|
||||||
NibbleArray skyLight = current.getSkyLightArray();
|
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) {
|
public static ChunkSection newChunkSection(int y2, boolean flag, int[] blocks) {
|
||||||
if (blocks == null) {
|
if (blocks == null) {
|
||||||
return new ChunkSection(y2, flag);
|
return new ChunkSection(y2 << 4, flag);
|
||||||
} else {
|
} else {
|
||||||
ChunkSection section = new ChunkSection(y2, flag);
|
ChunkSection section = new ChunkSection(y2 << 4, flag);
|
||||||
|
|
||||||
int[] blockToPalette = FaweCache.BLOCK_TO_PALETTE.get();
|
int[] blockToPalette = FaweCache.BLOCK_TO_PALETTE.get();
|
||||||
int[] paletteToBlock = FaweCache.PALETTE_TO_BLOCK.get();
|
int[] paletteToBlock = FaweCache.PALETTE_TO_BLOCK.get();
|
||||||
|
Loading…
Reference in New Issue
Block a user