mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
made pushing disableable in config, php8.1+particial 8.2 comp(not recommended)
This commit is contained in:
parent
79831c457d
commit
cb6e649081
19 changed files with 55 additions and 40 deletions
|
|
@ -84,9 +84,9 @@ class Async extends Thread{
|
|||
|
||||
public function run(){
|
||||
if(($this->result = call_user_func_array($this->method, $this->params))){
|
||||
return true;
|
||||
//return true;
|
||||
}else{
|
||||
return false;
|
||||
//return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@ class Random{
|
|||
private $x, $y, $z, $w;
|
||||
private $haveNextNextGaussian = false;
|
||||
private $nextNextGaussian = 0;
|
||||
|
||||
|
||||
public $state;
|
||||
public $i, $j;
|
||||
public function __construct($seed = false){
|
||||
$this->setSeed($seed);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class Utils{
|
|||
|
||||
public static function wrapAngleTo360($angle)
|
||||
{
|
||||
$angle %= 360;
|
||||
$angle = fmod($angle, 360);
|
||||
return $angle < 0 ? $angle + 360 : $angle;
|
||||
}
|
||||
public static function wrapAngleTo180($angle)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue