mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
replaced more stuff with entity queue, added a limit to how many packets can be resent per tick
This commit is contained in:
parent
21f8796e89
commit
6d10cfd896
7 changed files with 31 additions and 24 deletions
|
|
@ -208,7 +208,7 @@ class DoorBlock extends TransparentBlock{
|
|||
$pk->z = $this->z;
|
||||
$pk->evid = 1003;
|
||||
$pk->data = 0;
|
||||
ServerAPI::request()->api->player->broadcastPacket($players, $pk);
|
||||
ServerAPI::request()->api->player->broadcastPacket($players, $pk); //TODO use block queue?
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ class FenceGateBlock extends TransparentBlock{
|
|||
$pk->z = $this->z;
|
||||
$pk->evid = 1003;
|
||||
$pk->data = 0;
|
||||
ServerAPI::request()->api->player->broadcastPacket($players, $pk);
|
||||
ServerAPI::request()->api->player->broadcastPacket($players, $pk); //TODO use blok queue?
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue