mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Start migrating EnumTrait enums to PHP 8.1 native enums
This commit is contained in:
@ -66,7 +66,7 @@ class Ladder extends Transparent{
|
||||
}
|
||||
|
||||
public function getSupportType(int $facing) : SupportType{
|
||||
return SupportType::NONE();
|
||||
return SupportType::NONE;
|
||||
}
|
||||
|
||||
public function place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||
@ -85,6 +85,6 @@ class Ladder extends Transparent{
|
||||
}
|
||||
|
||||
private function canBeSupportedAt(Block $block, int $face) : bool{
|
||||
return $block->getAdjacentSupportType($face)->equals(SupportType::FULL());
|
||||
return $block->getAdjacentSupportType($face) === SupportType::FULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user