Unnecessary arguments in the if expression

This commit is contained in:
Sunch 2024-08-17 19:58:16 +08:00
parent f9f4e65571
commit 4630481d54
9 changed files with 13 additions and 13 deletions

View file

@ -15,7 +15,7 @@ class SetTimePacket extends RakNetDataPacket{
public function encode(){
$this->reset();
$this->putInt($this->time);
$this->putByte($this->started == true ? 0x80:0x00);
$this->putByte($this->started ? 0x80:0x00);
}
}

View file

@ -39,7 +39,7 @@ class QueryHandler{
public function regenerateInfo(){
$str = "";
$plist = "NostalgiaCore " . MAJOR_VERSION;
if($this->server->extraprops->get("query-plugins") == true){
if($this->server->extraprops->get("query-plugins")){
$pl = $this->server->api->plugin->getList();
if(count($pl) > 0){
$plist .= ":";

View file

@ -143,7 +143,7 @@ class RakNetParser{
$orderChannel = false;
}
if($hasSplit == true){
if($hasSplit){
$splitCount = $this->getInt();
$splitID = $this->getShort();
$splitIndex = $this->getInt();