mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Fire can be broken
This commit is contained in:
parent
2976db25c3
commit
1cc19ae1e8
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue