mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Blocks now save their bounding box, fixed entity block collision check
This commit is contained in:
@ -517,10 +517,6 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->tickChunks();
|
||||
$this->timings->doTickTiles->stopTiming();
|
||||
|
||||
if(($currentTick % 200) === 0){
|
||||
$this->blockCache = [];
|
||||
}
|
||||
|
||||
if(count($this->changedCount) > 0){
|
||||
if(count($this->players) > 0){
|
||||
foreach($this->changedCount as $index => $mini){
|
||||
@ -571,6 +567,10 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->timings->doTick->stopTiming();
|
||||
}
|
||||
|
||||
public function clearCache(){
|
||||
$this->blockCache = [];
|
||||
}
|
||||
|
||||
private function tickChunks(){
|
||||
if($this->chunksPerTick <= 0 or count($this->players) === 0){
|
||||
return;
|
||||
|
Reference in New Issue
Block a user