mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-25 20:33:59 +00:00
RegionWorldProvider: don't assume that path has a trailing directory separator
This commit is contained in:
parent
a53f698d38
commit
f720a58013
@ -131,7 +131,7 @@ abstract class RegionWorldProvider extends BaseWorldProvider{
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function pathToRegion(int $regionX, int $regionZ) : string{
|
protected function pathToRegion(int $regionX, int $regionZ) : string{
|
||||||
return $this->path . "region/r.$regionX.$regionZ." . static::getRegionFileExtension();
|
return $this->path . "/region/r.$regionX.$regionZ." . static::getRegionFileExtension();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user