fix: starts_with에 사소한 오류가 있어보임
- 이유는 잘 모르겠지만 starts_with($this->destNation['name'], 'ⓤ')
This commit is contained in:
@@ -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
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user