mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Lots of typos fixed, undefined variables, unused code
This commit is contained in:
@@ -76,7 +76,6 @@ class Config{
|
||||
*/
|
||||
public function __construct($file, $type = CONFIG_DETECT, $default = array(), &$correct = null){
|
||||
$this->load($file, $type, $default);
|
||||
$correct = $this->check();
|
||||
}
|
||||
|
||||
public function reload(){
|
||||
@@ -84,7 +83,6 @@ class Config{
|
||||
unset($this->correct);
|
||||
unset($this->type);
|
||||
$this->load($this->file);
|
||||
$correct = $this->check();
|
||||
}
|
||||
|
||||
public function fixYAMLIndexes($str){
|
||||
@@ -141,7 +139,6 @@ class Config{
|
||||
default:
|
||||
$this->correct = false;
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
if(!is_array($this->config)){
|
||||
$this->config = $default;
|
||||
|
@@ -107,7 +107,7 @@ class NBT{
|
||||
}
|
||||
|
||||
public function writeTAG_FLOAT($v){
|
||||
$this->binary .= Utils::writeLFloar($v);
|
||||
$this->binary .= Utils::writeLFloat($v);
|
||||
}
|
||||
|
||||
public function writeTAG_DOUBLE($v){
|
||||
|
@@ -620,7 +620,7 @@ class Utils{
|
||||
}
|
||||
|
||||
public static function writeLLong($value){
|
||||
return strrev(Utils::writeLong($str));
|
||||
return strrev(Utils::writeLong($value));
|
||||
}
|
||||
|
||||
|
||||
|
@@ -33,6 +33,7 @@ class VersionString{
|
||||
private $release;
|
||||
private $minor;
|
||||
private $development = false;
|
||||
private $generation;
|
||||
public function __construct($version = MAJOR_VERSION){
|
||||
if(is_int($version)){
|
||||
$this->minor = $version & 0x1F;
|
||||
|
@@ -87,7 +87,7 @@ class AsyncMultipleQueue extends Thread{
|
||||
$d = array();
|
||||
for($c = 0; $c < $cnt; ++$c){
|
||||
$key = $this->get(Utils::readShort($this->get(2), false));
|
||||
$d[$key] = $this->get(Utils::readInt($this->get(4), false));
|
||||
$d[$key] = $this->get(Utils::readInt($this->get(4)));
|
||||
}
|
||||
$res = (string) Utils::curl_post($url, $d, $timeout);
|
||||
$this->lock();
|
||||
|
Reference in New Issue
Block a user