mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Unnecessary arguments in the if expression
This commit is contained in:
parent
f9f4e65571
commit
4630481d54
9 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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 .= ":";
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class RakNetParser{
|
|||
$orderChannel = false;
|
||||
}
|
||||
|
||||
if($hasSplit == true){
|
||||
if($hasSplit){
|
||||
$splitCount = $this->getInt();
|
||||
$splitID = $this->getShort();
|
||||
$splitIndex = $this->getInt();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue