mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Removed $server constructor arguments because of ServerAPI::request()
This commit is contained in:
parent
af52b0a5b5
commit
6d39f54591
17 changed files with 35 additions and 34 deletions
|
|
@ -28,10 +28,10 @@ the Free Software Foundation, either version 3 of the License, or
|
|||
class TickLoop extends Thread{
|
||||
public $tick, $stop, $lastTic;
|
||||
private $server;
|
||||
public function __construct(PocketMinecraftServer $server){
|
||||
public function __construct(){
|
||||
$this->tick = false;
|
||||
$this->lastTick = 0;
|
||||
$this->server = $server;
|
||||
$this->server = ServerAPI::request();
|
||||
}
|
||||
public function run(){
|
||||
while($this->stop !== true){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue