mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
entity movement updates are unreliable, tweaked some AABB methods
This commit is contained in:
parent
2854949f27
commit
0a26fbd442
2 changed files with 9 additions and 23 deletions
|
|
@ -1263,18 +1263,18 @@ class Player{
|
|||
$this->sendEntityMovementUpdateQueue();
|
||||
}
|
||||
if($motionSent){
|
||||
$motion->messageIndex = $this->counter[3]++;
|
||||
$motion->reliability = 2;
|
||||
$motion->messageIndex = 0; //force 0 cuz reliability 0
|
||||
$motion->reliability = 0;
|
||||
$this->entityMovementQueue->data[] = $motion;
|
||||
}
|
||||
if($moveSent){
|
||||
$move->messageIndex = $this->counter[3]++;
|
||||
$move->reliability = 2;
|
||||
$move->messageIndex = 0;
|
||||
$move->reliability = 0;
|
||||
$this->entityMovementQueue->data[] = $move;
|
||||
}
|
||||
if($headSent){
|
||||
$headyaw->messageIndex = $this->counter[3]++;
|
||||
$headyaw->reliability = 2;
|
||||
$headyaw->messageIndex = 0;
|
||||
$headyaw->reliability = 0;
|
||||
$this->entityMovementQueue->data[] = $headyaw;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue