mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Remove redundant brackets from WoodenSlab
This commit is contained in:
parent
f2ff0198cc
commit
8475c63426
@ -85,11 +85,11 @@ class WoodenSlab extends Transparent{
|
|||||||
public function place(Item $item, Block $block, Block $target, int $face, Vector3 $facePos, Player $player = null) : bool{
|
public function place(Item $item, Block $block, Block $target, int $face, Vector3 $facePos, Player $player = null) : bool{
|
||||||
$this->meta &= 0x07;
|
$this->meta &= 0x07;
|
||||||
if($face === Vector3::SIDE_DOWN){
|
if($face === Vector3::SIDE_DOWN){
|
||||||
if($target->getId() === $this->id and ($target->getDamage() & 0x08) === 0x08 and ($target->getDamage() & 0x07) === ($this->meta)){
|
if($target->getId() === $this->id and ($target->getDamage() & 0x08) === 0x08 and ($target->getDamage() & 0x07) === $this->meta){
|
||||||
$this->getLevel()->setBlock($target, Block::get($this->doubleId, $this->meta), true);
|
$this->getLevel()->setBlock($target, Block::get($this->doubleId, $this->meta), true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}elseif($block->getId() === $this->id and ($block->getDamage() & 0x07) === ($this->meta)){
|
}elseif($block->getId() === $this->id and ($block->getDamage() & 0x07) === $this->meta){
|
||||||
$this->getLevel()->setBlock($block, Block::get($this->doubleId, $this->meta), true);
|
$this->getLevel()->setBlock($block, Block::get($this->doubleId, $this->meta), true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user