mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed block update queue
This commit is contained in:
parent
3c89749125
commit
fa91bbd98a
1 changed files with 2 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ class Level{
|
|||
}
|
||||
$player->sendEntityMovementUpdateQueue();
|
||||
|
||||
foreach($this->queuedBlockUpdates as $update){
|
||||
foreach($this->queuedBlockUpdates as $ind => $update){
|
||||
$x = $update[0];
|
||||
$y = $update[1];
|
||||
$z = $update[2];
|
||||
|
|
@ -398,6 +398,7 @@ class Level{
|
|||
$id = $idmeta[0];
|
||||
$meta = $idmeta[1];
|
||||
$player->addBlockUpdateIntoQueue($x, $y, $z, $id, $meta);
|
||||
unset($this->queuedBlockUpdates[$ind]);
|
||||
}
|
||||
$player->sendBlockUpdateQueue();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue