mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Remove .gz extension if found in map file
This commit is contained in:
parent
42a628731d
commit
41e24ca535
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user