Fixed #1901, EmptyChunkSection gets replaced by invalid Section

This commit is contained in:
Shoghi Cervantes 2014-08-16 11:54:08 +02:00
parent 24134a06b8
commit a610a86579

View File

@ -116,10 +116,10 @@ class Anvil extends McRegion{
public static function createChunkSection($Y){
return new ChunkSection(new Compound(null, [
"Y" => new Byte("Y", $Y),
"Blocks" => new ByteArray("Blocks", str_repeat("\xff", 4096)),
"Data" => new ByteArray("Data", $half = str_repeat("\xff", 2048)),
"SkyLight" => new ByteArray("SkyLight", $half),
"BlockLight" => new ByteArray("BlockLight", $half)
"Blocks" => new ByteArray("Blocks", str_repeat("\x00", 4096)),
"Data" => new ByteArray("Data", str_repeat("\x00", 2048)),
"SkyLight" => new ByteArray("SkyLight", str_repeat("\xff", 2048)),
"BlockLight" => new ByteArray("BlockLight", str_repeat("\x00", 2048))
]));
}