mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Improved block collision check
This commit is contained in:
@@ -994,9 +994,9 @@ abstract class Entity extends Position implements Metadatable{
|
||||
}
|
||||
|
||||
protected function checkBlockCollision(){
|
||||
$minX = floor($this->boundingBox->minX + 0.001);
|
||||
$minY = floor($this->boundingBox->minY + 0.001);
|
||||
$minZ = floor($this->boundingBox->minZ + 0.001);
|
||||
$minX = floor($this->boundingBox->minX - 0.001);
|
||||
$minY = floor($this->boundingBox->minY - 0.001);
|
||||
$minZ = floor($this->boundingBox->minZ - 0.001);
|
||||
$maxX = floor($this->boundingBox->maxX + 0.001);
|
||||
$maxY = floor($this->boundingBox->maxY + 0.001);
|
||||
$maxZ = floor($this->boundingBox->maxZ + 0.001);
|
||||
|
Reference in New Issue
Block a user