mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Fix
This commit is contained in:
parent
77ecdb8727
commit
e0727d2e57
@ -40,7 +40,7 @@ class ConsoleAPI{
|
||||
$this->event = new EventBase();
|
||||
$event = new Event($this->event, STDIN, Event::READ | Event::PERSIST, array($this, "readLine"));
|
||||
$event->add();
|
||||
$this->event->loop();
|
||||
$this->event->loop(EventBase::LOOP_NONBLOCK);
|
||||
}else{
|
||||
$this->event = $this->server->event("server.tick", array($this, "handle"));
|
||||
$this->loop = new ConsoleLoop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user