mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Refactored button code, fix placement rotation
This commit is contained in:
@ -23,14 +23,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\block;
|
||||
|
||||
class StoneButton extends Flowable{
|
||||
use pocketmine\item\Tool;
|
||||
|
||||
class StoneButton extends Button{
|
||||
|
||||
protected $id = self::STONE_BUTTON;
|
||||
|
||||
public function __construct(int $meta = 0){
|
||||
$this->meta = $meta;
|
||||
}
|
||||
|
||||
public function getName() : string{
|
||||
return "Stone Button";
|
||||
}
|
||||
@ -39,7 +37,7 @@ class StoneButton extends Flowable{
|
||||
return 0.5;
|
||||
}
|
||||
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
public function getToolType() : int{
|
||||
return Tool::TYPE_PICKAXE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user