mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
cleanup block dual bounding box clusterfuck
"bounding box" serves no tangible purpose, only collision boxes do right now.
This commit is contained in:
@ -86,17 +86,6 @@ class Vine extends Flowable{
|
||||
$entity->resetFallDistance();
|
||||
}
|
||||
|
||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||
switch(count($this->faces)){
|
||||
case 0:
|
||||
return AxisAlignedBB::one()->trim(Facing::DOWN, 15 / 16);
|
||||
case 1:
|
||||
return AxisAlignedBB::one()->trim(Facing::opposite(array_keys($this->faces)[0]), 15 / 16);
|
||||
default:
|
||||
return AxisAlignedBB::one();
|
||||
}
|
||||
}
|
||||
|
||||
protected function recalculateCollisionBoxes() : array{
|
||||
return [];
|
||||
}
|
||||
|
Reference in New Issue
Block a user