diff --git a/system/libs/Towns.php b/system/libs/Towns.php index 3a0c5974..01caa550 100644 --- a/system/libs/Towns.php +++ b/system/libs/Towns.php @@ -99,6 +99,10 @@ class Towns $mapFile = config('data_path') . 'world/' . $mapName; } + if (strpos($mapFile, '.gz') !== false) { + $mapFile = str_replace('.gz', '', $mapFile); + } + $towns = []; if (file_exists($mapFile)) { ini_set('memory_limit', '-1'); @@ -131,4 +135,4 @@ class Towns return $towns; } -} \ No newline at end of file +}