mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed torch sides
This commit is contained in:
parent
f195168132
commit
44cb66837e
1 changed files with 6 additions and 4 deletions
|
|
@ -34,14 +34,16 @@ class TorchBlock extends FlowableBlock{
|
||||||
if($type === BLOCK_UPDATE_NORMAL){
|
if($type === BLOCK_UPDATE_NORMAL){
|
||||||
$side = $this->getMetadata();
|
$side = $this->getMetadata();
|
||||||
$faces = array(
|
$faces = array(
|
||||||
1 => 3,
|
1 => 4,
|
||||||
2 => 2,
|
2 => 5,
|
||||||
3 => 5,
|
3 => 2,
|
||||||
4 => 4,
|
4 => 3,
|
||||||
5 => 0,
|
5 => 0,
|
||||||
6 => 0,
|
6 => 0,
|
||||||
0 => 0,
|
0 => 0,
|
||||||
);
|
);
|
||||||
|
console($side);
|
||||||
|
console($faces[$side]);
|
||||||
if($level->getBlockFace($this, $faces[$side])->isTransparent === true){
|
if($level->getBlockFace($this, $faces[$side])->isTransparent === true){
|
||||||
$level->drop($this, BlockAPI::getItem($this->id));
|
$level->drop($this, BlockAPI::getItem($this->id));
|
||||||
$level->setBlock($this, AIR, 0, false);
|
$level->setBlock($this, AIR, 0, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue