sendBuffer will add packet to recoveryQueue which should help to prevent the loss of some packets

This commit is contained in:
GameHerobrine 2025-04-13 02:44:51 +03:00
parent 0b7fd74175
commit 24269bc359
2 changed files with 10 additions and 15 deletions

View file

@ -353,13 +353,14 @@ class PMFLevel extends PMF{
}
public function getBlockID($x, $y, $z){
if($y > 127 || $y < 0){
return 0;
}
if($x < 0 || $x > 255 || $z < 0 || $z > 255){
return INVISIBLE_BEDROCK;
}
if($y > 127 || $y < 0){
return 0;
}
$X = $x >> 4;
$Z = $z >> 4;
$Y = $y >> 4;
@ -460,12 +461,12 @@ class PMFLevel extends PMF{
}
public function getBlock($x, $y, $z){
if($x < 0 || $x > 255 || $z < 0 || $z > 255){
return [INVISIBLE_BEDROCK, 0];
}
if($y < 0 || $y > 127){
return [AIR, 0];
}
if($x < 0 || $x > 255 || $z < 0 || $z > 255){
return [INVISIBLE_BEDROCK, 0];
}
$X = $x >> 4;
$Z = $z >> 4;