mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Improved chunk sending, moved chunk encoding and compression to another thread
This commit is contained in:
@ -95,7 +95,7 @@ abstract class BaseChunk implements Chunk{
|
||||
if(count($biomeColors) === 256){
|
||||
$this->biomeColors = $biomeColors;
|
||||
}else{
|
||||
$this->biomeColors = array_fill(0, 256, Binary::readInt("\x01\x85\xb2\x4a"));
|
||||
$this->biomeColors = array_fill(0, 256, Binary::readInt("\x00\x85\xb2\x4a"));
|
||||
}
|
||||
|
||||
foreach($entities as $nbt){
|
||||
|
@ -76,7 +76,7 @@ class EmptyChunkSection implements ChunkSection{
|
||||
}
|
||||
|
||||
public function getSkyLightArray(){
|
||||
return str_repeat("\x00", 2048);
|
||||
return str_repeat("\xff", 2048);
|
||||
}
|
||||
|
||||
public function getLightArray(){
|
||||
|
Reference in New Issue
Block a user