From a610a86579b24b63ca9cf63b14eb551f857c77c3 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 16 Aug 2014 11:54:08 +0200 Subject: [PATCH] Fixed #1901, EmptyChunkSection gets replaced by invalid Section --- src/pocketmine/level/format/anvil/Anvil.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/level/format/anvil/Anvil.php b/src/pocketmine/level/format/anvil/Anvil.php index b51c19501..bab5e3e0c 100644 --- a/src/pocketmine/level/format/anvil/Anvil.php +++ b/src/pocketmine/level/format/anvil/Anvil.php @@ -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)) ])); }