mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Improved Falling blocks physics, entity kill, chunk unserialize, fixed flat generator color, fixed nbt tags __toString(), fixed explosion offsets, fixed increased player interaction range in creative
This commit is contained in:
@ -953,12 +953,12 @@ class Level implements ChunkManager, Metadatable{
|
||||
* @return AxisAlignedBB[]
|
||||
*/
|
||||
public function getCollisionCubes(Entity $entity, AxisAlignedBB $bb, $entities = true){
|
||||
$minX = Math::floorFloat($bb->minX);
|
||||
$minY = Math::floorFloat($bb->minY);
|
||||
$minZ = Math::floorFloat($bb->minZ);
|
||||
$maxX = Math::ceilFloat($bb->maxX);
|
||||
$maxY = Math::ceilFloat($bb->maxY);
|
||||
$maxZ = Math::ceilFloat($bb->maxZ);
|
||||
$minX = (int) $bb->minX;
|
||||
$minY = (int) $bb->minY;
|
||||
$minZ = (int) $bb->minZ;
|
||||
$maxX = (int) ($bb->maxX + 1);
|
||||
$maxY = (int) ($bb->maxY + 1);
|
||||
$maxZ = (int) ($bb->maxZ + 1);
|
||||
|
||||
$collides = [];
|
||||
$v = $this->temporalVector;
|
||||
|
Reference in New Issue
Block a user