mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
php8 console fix
This commit is contained in:
parent
ab0b726904
commit
a907a7cf5e
2 changed files with 6 additions and 6 deletions
|
|
@ -304,11 +304,11 @@ class ConsoleLoop extends Thread{
|
|||
}
|
||||
|
||||
while(!$this->stop){
|
||||
$this->synchronized(function($t){
|
||||
$t->line = $t->readLine();
|
||||
$t->wait();
|
||||
}, $this);
|
||||
$this->line = false;
|
||||
$this->line = $this->readLine();
|
||||
$this->synchronized(function($t) {
|
||||
$this->wait();
|
||||
$this->line = false;
|
||||
}, $this);
|
||||
}
|
||||
|
||||
if(!extension_loaded("readline")){
|
||||
|
|
|
|||
|
|
@ -624,12 +624,12 @@ class Entity extends Position
|
|||
}
|
||||
if($b != false && $b->boundingBox->intersectsWith($aABB) && $b->isSolid && $this->isMoving()){
|
||||
$this->speedX = $b->boundingBox->calculateXOffset($this->boundingBox, $this->speedX);
|
||||
$this->speedZ = $b->boundingBox->calculateZOffset($this->boundingBox, $this->speedZ);
|
||||
$lastY = $this->speedY;
|
||||
$this->speedY = $b->boundingBox->calculateYOffset($this->boundingBox, $this->speedY);
|
||||
if($this->speedY == 0 && $lastY > 0){
|
||||
$support = true;
|
||||
}
|
||||
$this->speedZ = $b->boundingBox->calculateZOffset($this->boundingBox, $this->speedZ);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue