mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
mtu size increased, block updates queue sequences are now added into recoveryQueue, small change to how lost packets are calculated, replaced switch cases to create packet with match
This commit is contained in:
parent
24269bc359
commit
66bc178238
6 changed files with 73 additions and 180 deletions
|
|
@ -505,8 +505,6 @@ class BlockAPI{
|
|||
if($hand->isSolid === true && ($hand->getID() != BED_BLOCK && $hand->getID() != CARPET)){
|
||||
$aabb = $hand->getAABB($block->level, $block->x, $block->y, $block->z);
|
||||
$playerbb = $player->entity->boundingBox;
|
||||
//$aabb->intersectsWith($playerbb) is not good enough for this case
|
||||
//minY+0.21 is used to stop sneaking from triggering action cancelling
|
||||
if(($aabb->maxX > $playerbb->minX && $aabb->minX < $playerbb->maxX) && ($aabb->maxY > ($playerbb->minY+0.21) && $aabb->minY < $playerbb->maxY) && ($aabb->maxZ > $playerbb->minZ && $aabb->minZ < $playerbb->maxZ)){
|
||||
return $this->cancelAction($block, $player, false); //Entity in block
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue