mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
AddPlayerPacket is sent directly now
This commit is contained in:
parent
2a47f92d9a
commit
c3b09096b4
5 changed files with 13 additions and 9 deletions
|
|
@ -447,6 +447,7 @@ class PocketMinecraftServer{
|
|||
if(!is_callable($callback)){
|
||||
return false;
|
||||
}
|
||||
|
||||
$chcnt = $this->scheduleCnt++;
|
||||
$this->schedule[$chcnt] = [$callback, $data, $eventName];
|
||||
$this->query("INSERT INTO actions (ID, interval, last, repeat) VALUES(" . $chcnt . ", " . ($ticks / 20) . ", " . microtime(true) . ", " . (((bool) $repeat) === true ? 1 : 0) . ");");
|
||||
|
|
@ -604,7 +605,8 @@ class PocketMinecraftServer{
|
|||
foreach($this->api->level->levels as $l){
|
||||
$l->onTick($this, $time);
|
||||
}
|
||||
return $this->tickerFunction($time);
|
||||
$r = $this->tickerFunction($time);
|
||||
return $r;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue