mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 23:11:06 +00:00
remove redundant count() for updateTiles
This commit is contained in:
parent
7c2dccd2a6
commit
28188e5ef4
@ -733,11 +733,9 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$this->timings->tileEntityTick->startTiming();
|
$this->timings->tileEntityTick->startTiming();
|
||||||
Timings::$tickTileEntityTimer->startTiming();
|
Timings::$tickTileEntityTimer->startTiming();
|
||||||
//Update tiles that need update
|
//Update tiles that need update
|
||||||
if(count($this->updateTiles) > 0){
|
foreach($this->updateTiles as $id => $tile){
|
||||||
foreach($this->updateTiles as $id => $tile){
|
if($tile->onUpdate() !== true){
|
||||||
if($tile->onUpdate() !== true){
|
unset($this->updateTiles[$id]);
|
||||||
unset($this->updateTiles[$id]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Timings::$tickTileEntityTimer->stopTiming();
|
Timings::$tickTileEntityTimer->stopTiming();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user