Skip to content

Commit 75d04b5

Browse files
committed
simplified check for packaged
1 parent ae97b16 commit 75d04b5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/jp/mcbe/fuyutsuki/Texter/Main.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private function isPhar(): bool {
250250
}
251251

252252
private function isPackagedByPharynx(): bool {
253-
return is_dir($this->getFile() . Dependencies::PHARYNX_LIBRARY_DIR);
253+
return is_file($this->getFile() . Dependencies::PACKAGED_POGGIT_FILE);
254254
}
255255

256256
public static function prefix(): string {

src/jp/mcbe/fuyutsuki/Texter/util/dependencies/Dependencies.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ final class Dependencies {
1010

1111
use Imconstructable;
1212

13-
public const PLUGIN_NAMESPACE = "\\jp\\mcbe\\fuyutsuki\\Texter";
14-
15-
public const PHARYNX_LIBRARY_DIR = "\\libs";
13+
public const PACKAGED_POGGIT_FILE = ".poggit";
1614
public const PMFORMS = "\\dktapps\\pmforms\\BaseForm";
1715

1816
}

0 commit comments

Comments
 (0)