mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
Fence: add missing return type to canConnect()
This commit is contained in:
parent
d8acae5495
commit
f59094e6d6
@ -103,6 +103,11 @@ abstract class Fence extends Transparent{
|
|||||||
return $bbs;
|
return $bbs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Block $block
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
public function canConnect(Block $block){
|
public function canConnect(Block $block){
|
||||||
return $block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent());
|
return $block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user