mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Added new Block properties (Block::isSolid, Block::isFullBlock)
This commit is contained in:
parent
8d00ef381d
commit
a795b64bab
36 changed files with 57 additions and 32 deletions
|
|
@ -43,7 +43,7 @@ class TorchBlock extends FlowableBlock{
|
|||
0 => 0,
|
||||
);
|
||||
|
||||
if($this->getSide($faces[$side])->isFlowable === true){ //Replace wit common break method
|
||||
if($this->getSide($faces[$side])->isTransparent === true and !($side === 0 and $this->getSide(0)->getID() === FENCE)){ //Replace wit common break method
|
||||
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id));
|
||||
$this->level->setBlock($this, new AirBlock(), false);
|
||||
return BLOCK_UPDATE_NORMAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue