mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 18:11:52 +00:00
Fixed torch sides
This commit is contained in:
parent
f195168132
commit
44cb66837e
@ -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…
x
Reference in New Issue
Block a user