mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +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
|
|
@ -47,16 +47,6 @@ class Arrow extends Entity{
|
|||
$data["shotByPlayer"] = $this->shotByPlayer;
|
||||
return $data;
|
||||
}
|
||||
public function handleUpdate(){
|
||||
$pk = new MoveEntityPacket_PosRot;
|
||||
$pk->eid = $this->eid;
|
||||
$pk->x = $this->x;
|
||||
$pk->y = $this->y;
|
||||
$pk->z = $this->z;
|
||||
$pk->yaw = $this->yaw;
|
||||
$pk->pitch = $this->pitch;
|
||||
$this->server->api->player->broadcastPacket($this->level->players, $pk);
|
||||
}
|
||||
|
||||
public function shoot($d, $d1, $d2, $f, $f1){ //original name from 0.8.1 IDA decompilation, var names are taken from b1.7.3
|
||||
$f2 = sqrt($d * $d + $d1 * $d1 + $d2 * $d2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue