fix: starts_with에 사소한 오류가 있어보임

- 이유는 잘 모르겠지만 starts_with($this->destNation['name'], 'ⓤ')
This commit is contained in:
Hide_D committed 2022-01-02 22:46:32 +09:00
1 parent b9582b0dd2
commit 099bcdaf8f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ class AllowJoinDestNation extends Constraint{
return false; return false;
} }
if($this->general['npc']??2 < 2 && \sammo\Util::starts_with($this->destNation['name'], 'ⓤ')){ if($this->general['npc']??2 < 2 && \str_starts_with($this->destNation['name'], 'ⓤ')){
$this->reason = "유저장은 태수국에 임관할 수 없습니다."; $this->reason = "유저장은 태수국에 임관할 수 없습니다.";
return false; return false;
} }
+1 -1
View File
@@ -1000,7 +1000,7 @@ class util
*/ */
public static function starts_with($string, $starts_with) public static function starts_with($string, $starts_with)
{ {
return strpos($string, $starts_with) === 0; return str_starts_with($string, $starts_with);
} }
/** /**