diff --git a/src/jp/mcbe/fuyutsuki/Texter/Main.php b/src/jp/mcbe/fuyutsuki/Texter/Main.php index b89fa75..7f1d822 100644 --- a/src/jp/mcbe/fuyutsuki/Texter/Main.php +++ b/src/jp/mcbe/fuyutsuki/Texter/Main.php @@ -250,7 +250,7 @@ private function isPhar(): bool { } private function isPackagedByPharynx(): bool { - return is_dir($this->getFile() . Dependencies::PHARYNX_LIBRARY_DIR); + return is_file($this->getFile() . Dependencies::PACKAGED_POGGIT_FILE); } public static function prefix(): string { diff --git a/src/jp/mcbe/fuyutsuki/Texter/util/dependencies/Dependencies.php b/src/jp/mcbe/fuyutsuki/Texter/util/dependencies/Dependencies.php index a3fc69b..6eb1895 100644 --- a/src/jp/mcbe/fuyutsuki/Texter/util/dependencies/Dependencies.php +++ b/src/jp/mcbe/fuyutsuki/Texter/util/dependencies/Dependencies.php @@ -10,9 +10,7 @@ final class Dependencies { use Imconstructable; - public const PLUGIN_NAMESPACE = "\\jp\\mcbe\\fuyutsuki\\Texter"; - - public const PHARYNX_LIBRARY_DIR = "\\libs"; + public const PACKAGED_POGGIT_FILE = ".poggit"; public const PMFORMS = "\\dktapps\\pmforms\\BaseForm"; } \ No newline at end of file