mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 18:11:52 +00:00
Added torch drop
This commit is contained in:
parent
48bc919a33
commit
529bf743db
@ -50,8 +50,7 @@ class Torch extends Flowable{
|
|||||||
];
|
];
|
||||||
|
|
||||||
if($this->getSide($faces[$side])->isTransparent === true and !($side === 0 and $this->getSide(0)->getID() === self::FENCE)){ //Replace with common break method
|
if($this->getSide($faces[$side])->isTransparent === true and !($side === 0 and $this->getSide(0)->getID() === self::FENCE)){ //Replace with common break method
|
||||||
//TODO
|
$this->getLevel()->dropItem($this, Item::get(Item::TORCH));
|
||||||
//Server::getInstance()->api->entity->drop($this, Item::get($this->id, 0, 1));
|
|
||||||
$this->getLevel()->setBlock($this, new Air(), true);
|
$this->getLevel()->setBlock($this, new Air(), true);
|
||||||
|
|
||||||
return Level::BLOCK_UPDATE_NORMAL;
|
return Level::BLOCK_UPDATE_NORMAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user