mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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){
|
||||
$side = $this->getMetadata();
|
||||
$faces = array(
|
||||
1 => 3,
|
||||
2 => 2,
|
||||
3 => 5,
|
||||
4 => 4,
|
||||
1 => 4,
|
||||
2 => 5,
|
||||
3 => 2,
|
||||
4 => 3,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
0 => 0,
|
||||
);
|
||||
console($side);
|
||||
console($faces[$side]);
|
||||
if($level->getBlockFace($this, $faces[$side])->isTransparent === true){
|
||||
$level->drop($this, BlockAPI::getItem($this->id));
|
||||
$level->setBlock($this, AIR, 0, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user