mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Save block bounding boxes, improves block cache
This commit is contained in:
@ -53,6 +53,10 @@ abstract class Door extends Transparent{
|
||||
}
|
||||
|
||||
public function getBoundingBox(){
|
||||
if($this->boundingBox !== null){
|
||||
return $this->boundingBox;
|
||||
}
|
||||
|
||||
$f = 0.1875;
|
||||
$damage = $this->getFullDamage();
|
||||
|
||||
@ -195,7 +199,7 @@ abstract class Door extends Transparent{
|
||||
}
|
||||
}
|
||||
|
||||
return $bb;
|
||||
return $this->boundingBox = $bb;
|
||||
}
|
||||
|
||||
public function onUpdate($type){
|
||||
|
Reference in New Issue
Block a user