mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 08:54:22 +00:00
Fire can be broken
This commit is contained in:
parent
2976db25c3
commit
1cc19ae1e8
@ -29,10 +29,13 @@ class FireBlock extends FlowableBlock{
|
|||||||
public function __construct($meta = 0){
|
public function __construct($meta = 0){
|
||||||
parent::__construct(FIRE, $meta, "Fire");
|
parent::__construct(FIRE, $meta, "Fire");
|
||||||
$this->isReplaceable = true;
|
$this->isReplaceable = true;
|
||||||
$this->breakable = false;
|
|
||||||
$this->isFullBlock = true;
|
$this->isFullBlock = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDrops(Item $item, Player $player){
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
public function onUpdate($type){
|
public function onUpdate($type){
|
||||||
if($type === BLOCK_UPDATE_NORMAL){
|
if($type === BLOCK_UPDATE_NORMAL){
|
||||||
for($s = 0; $s <= 5; ++$s){
|
for($s = 0; $s <= 5; ++$s){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user