public function addShop(Location $loc, $col) { $hash = Level::chunkHash($loc->getFloorX() >> 4, $loc->getFloorZ() >> 4); if (!isset($this->shopLocs[$hash])) { $this->shopLocs[$hash] = []; } $this->shopLocs[$hash][$col] = $loc; }