mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
fixed tickerfunction and queue after rollback
This commit is contained in:
parent
5a059eab71
commit
c3e6554762
2 changed files with 3 additions and 1 deletions
|
|
@ -620,7 +620,7 @@ class PocketMinecraftServer{
|
||||||
++$actionCount;
|
++$actionCount;
|
||||||
try{
|
try{
|
||||||
$return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null
|
$return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null
|
||||||
}catch(ValueError $e){
|
}catch(Throwable $e){
|
||||||
$return = false;
|
$return = false;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
|
|
@ -385,6 +385,8 @@ class Level{
|
||||||
}
|
}
|
||||||
$player->sendBlockUpdateQueue();
|
$player->sendBlockUpdateQueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->queuedBlockUpdates = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addBlockToSendQueue($x, $y, $z, $id, $meta){
|
public function addBlockToSendQueue($x, $y, $z, $id, $meta){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue