mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Move language submodule to resources/
again, this isn't source code.
This commit is contained in:
parent
ce7718f0d1
commit
c201a0e909
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,5 +1,5 @@
|
||||
[submodule "src/pocketmine/lang/locale"]
|
||||
path = src/pocketmine/lang/locale
|
||||
path = resources/locale
|
||||
url = https://github.com/pmmp/PocketMine-Language.git
|
||||
[submodule "tests/preprocessor"]
|
||||
path = tests/preprocessor
|
||||
|
@ -35,7 +35,7 @@ class Language{
|
||||
*/
|
||||
public static function getLanguageList(string $path = "") : array{
|
||||
if($path === ""){
|
||||
$path = \pocketmine\PATH . "src/pocketmine/lang/locale/";
|
||||
$path = \pocketmine\RESOURCE_PATH . "locale/";
|
||||
}
|
||||
|
||||
if(is_dir($path)){
|
||||
@ -82,7 +82,7 @@ class Language{
|
||||
$this->langName = strtolower($lang);
|
||||
|
||||
if($path === null){
|
||||
$path = \pocketmine\PATH . "src/pocketmine/lang/locale/";
|
||||
$path = \pocketmine\RESOURCE_PATH . "locale/";
|
||||
}
|
||||
|
||||
$this->lang = self::loadLang($path, $this->langName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user