Improved chunk sending, moved chunk encoding and compression to another thread

This commit is contained in:
Shoghi Cervantes
2014-07-05 20:41:30 +02:00
parent 417cb94ea3
commit 22552cdd72
9 changed files with 253 additions and 85 deletions

View File

@ -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){

View File

@ -76,7 +76,7 @@ class EmptyChunkSection implements ChunkSection{
}
public function getSkyLightArray(){
return str_repeat("\x00", 2048);
return str_repeat("\xff", 2048);
}
public function getLightArray(){