mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
DiskResourceProvider: do not trim backslashes from path when we're not on Windows
This commit is contained in:
parent
2170f81cdd
commit
49bd58a86a
@ -43,7 +43,7 @@ class DiskResourceProvider implements ResourceProvider{
|
||||
private $file;
|
||||
|
||||
public function __construct(string $path){
|
||||
$this->file = rtrim($path, "/\\") . "/";
|
||||
$this->file = rtrim(str_replace(DIRECTORY_SEPARATOR, "/", $path), "/") . "/";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user