mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 04:46:40 +00:00
Fix biome sending
This commit is contained in:
@ -46,6 +46,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
||||
|
||||
@Override
|
||||
public BiomeType getBiomeType(int x, int z) {
|
||||
if (biomes == null) return null;
|
||||
return biomes[(z << 4) | x];
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ public class ChunkSendProcessor implements IBatchProcessor {
|
||||
public IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
|
||||
int chunkX = chunk.getX();
|
||||
int chunkZ = chunk.getZ();
|
||||
boolean replaceAll = set.getBiomeType(0, 0) != null;
|
||||
boolean replaceAll = set.hasBiomes();
|
||||
ChunkPacket packet = new ChunkPacket(chunkX, chunkZ, () -> set, replaceAll);
|
||||
Stream<Player> stream = this.players.get();
|
||||
if (stream == null) {
|
||||
|
Reference in New Issue
Block a user