mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Moved blocks around
This commit is contained in:
parent
cd932d5c07
commit
5786ba7a35
17 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class TorchBlock extends FlowableBlock{
|
||||||
);
|
);
|
||||||
|
|
||||||
if($this->getSide($faces[$side])->isTransparent === true and !($side === 0 and $this->getSide(0)->getID() === FENCE)){ //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));
|
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, 0, 1));
|
||||||
$this->level->setBlock($this, new AirBlock(), false);
|
$this->level->setBlock($this, new AirBlock(), false);
|
||||||
return BLOCK_UPDATE_NORMAL;
|
return BLOCK_UPDATE_NORMAL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ class SnowLayerBlock extends FlowableBlock{
|
||||||
parent::__construct(SNOW_LAYER, $meta, "Snow Layer");
|
parent::__construct(SNOW_LAYER, $meta, "Snow Layer");
|
||||||
$this->isReplaceable = true;
|
$this->isReplaceable = true;
|
||||||
$this->isSolid = false;
|
$this->isSolid = false;
|
||||||
|
$this->isFullBlock = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onUpdate($type){
|
public function onUpdate($type){
|
||||||
Loading…
Add table
Add a link
Reference in a new issue