This commit is contained in:
Sunch 2025-01-12 20:26:18 +08:00
parent 165388c8ae
commit 761ac69a20
13 changed files with 7 additions and 23 deletions

View file

@ -61,7 +61,7 @@ class AsyncMultipleQueue extends Thread{
++$offset;
}
}
$this->input = (string) substr($this->input, $offset);
$this->input = substr($this->input, $offset);
return $str;
}
}

View file

@ -109,7 +109,6 @@ class Config{
default:
$this->correct = false;
return false;
break;
}
if(!is_array($this->config)){
$this->config = $default;
@ -247,7 +246,7 @@ class Config{
unset($this->correct);
unset($this->type);
$this->load($this->file);
$correct = $this->check();
$this->check();
}
/**

View file

@ -67,7 +67,6 @@ class NBT{
default:
echo bin2hex(substr($this->binary, $this->offset - 1)) . PHP_EOL . PHP_EOL;
die("Invalid NBT Tag $tag");
break;
}
$node[$name] = $value;
}
@ -155,7 +154,6 @@ class NBT{
default:
echo bin2hex(substr($this->binary, $this->offset - 1)) . PHP_EOL . PHP_EOL;
die("Invalid NBT Tag $tag");
break;
}
$node[] = $value;
}

View file

@ -34,7 +34,6 @@ class Random{
$this->haveNextNextGaussian = false;
return $this->nextNextGaussian;
}else{
$v1 = $v2 = $s = null;
do{
$v1 = 2 * $this->nextFloat() - 1; // between -1.0 and 1.0
$v2 = 2 * $this->nextFloat() - 1; // between -1.0 and 1.0