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

- 이유는 잘 모르겠지만 starts_with($this->destNation['name'], 'ⓤ')
This commit is contained in:
2022-01-02 22:46:32 +09:00
parent dd46c02f09
commit fb796e21e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class AllowJoinDestNation extends Constraint{
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 = "유저장은 태수국에 임관할 수 없습니다.";
return false;
}
+1 -1
View File
@@ -1000,7 +1000,7 @@ class util
*/
public static function starts_with($string, $starts_with)
{
return strpos($string, $starts_with) === 0;
return str_starts_with($string, $starts_with);
}
/**