mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Remove hardcoded facing literals in for loops
This commit is contained in:
@ -142,8 +142,8 @@ class Fire extends Flowable{
|
||||
}
|
||||
|
||||
private function hasAdjacentFlammableBlocks() : bool{
|
||||
for($i = 0; $i <= 5; ++$i){
|
||||
if($this->getSide($i)->isFlammable()){
|
||||
foreach(Facing::ALL as $face){
|
||||
if($this->getSide($face)->isFlammable()){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user