mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +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();
|
$player->sendEntityMovementUpdateQueue();
|
||||||
|
|
||||||
foreach($this->queuedBlockUpdates as $update){
|
foreach($this->queuedBlockUpdates as $ind => $update){
|
||||||
$x = $update[0];
|
$x = $update[0];
|
||||||
$y = $update[1];
|
$y = $update[1];
|
||||||
$z = $update[2];
|
$z = $update[2];
|
||||||
|
|
@ -398,6 +398,7 @@ class Level{
|
||||||
$id = $idmeta[0];
|
$id = $idmeta[0];
|
||||||
$meta = $idmeta[1];
|
$meta = $idmeta[1];
|
||||||
$player->addBlockUpdateIntoQueue($x, $y, $z, $id, $meta);
|
$player->addBlockUpdateIntoQueue($x, $y, $z, $id, $meta);
|
||||||
|
unset($this->queuedBlockUpdates[$ind]);
|
||||||
}
|
}
|
||||||
$player->sendBlockUpdateQueue();
|
$player->sendBlockUpdateQueue();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue