mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Drop some obviously useless static function variables
these are better suited as constant literals.
This commit is contained in:
@ -72,14 +72,13 @@ class Torch extends Flowable{
|
||||
$this->facing = $face;
|
||||
return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||
}else{
|
||||
static $faces = [
|
||||
foreach([
|
||||
Facing::SOUTH,
|
||||
Facing::WEST,
|
||||
Facing::NORTH,
|
||||
Facing::EAST,
|
||||
Facing::DOWN
|
||||
];
|
||||
foreach($faces as $side){
|
||||
] as $side){
|
||||
$block = $this->getSide($side);
|
||||
if(!$block->isTransparent()){
|
||||
$this->facing = Facing::opposite($side);
|
||||
|
Reference in New Issue
Block a user