fixed player posiiton on bed, hopefully fixed players not receiving packets sometimes

This commit is contained in:
GameHerobrine 2026-01-03 15:55:22 +03:00
parent f93aa2601a
commit 4c072e91cd
4 changed files with 19 additions and 9 deletions

View file

@ -97,7 +97,7 @@ class Explosion{
$pk->radius = $this->size;
$pk->records = []; //ExplodePacket doesnt seem to use the records provided by this packet, so no need to send more data
foreach ($this->level->players as $player){
$player->blockQueueDataPacket($pk);
$player->blockQueueDataPacket(clone $pk);
}
return;
}
@ -214,7 +214,7 @@ class Explosion{
$pk->radius = $this->size;
$pk->records = []; //ExplodePacket doesnt seem to use the records provided by this packet, so no need to send more data
foreach ($this->level->players as $player){
$player->blockQueueDataPacket($pk);
$player->blockQueueDataPacket(clone $pk);
}
}