public function setSection($fY, ChunkSection $section) { if (substr_count($section->getIdArray(), "") === 4096 and substr_count($section->getDataArray(), "") === 2048) { $this->sections[(int) $fY] = new EmptyChunkSection($fY); } else { $this->sections[(int) $fY] = $section; } $this->hasChanged = true; }