From c402e9623b2adad09878eda8567c46fd8f67fee7 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Sat, 28 Jan 2023 21:47:13 +0300 Subject: [PATCH] Update NetherReactorBlock.php --- src/material/block/misc/NetherReactorBlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/block/misc/NetherReactorBlock.php b/src/material/block/misc/NetherReactorBlock.php index db9f6dbd..cfba8be1 100644 --- a/src/material/block/misc/NetherReactorBlock.php +++ b/src/material/block/misc/NetherReactorBlock.php @@ -159,7 +159,7 @@ class NetherReactorBlock extends SolidBlock{ $this->level->setBlock(new Vector3($x-1, $y+1, $z-1),new ObsidianBlock); break; case 6: - $this->level->setBlock(new Vector3($x, $y, $z),new ObsidianBlock); + $this->level->setBlock(new Vector3($x, $y, $z), new NetherReactorBlock(2)); $this->level->setBlock(new Vector3($x+1, $y, $z),new ObsidianBlock); $this->level->setBlock(new Vector3($x-1, $y, $z),new ObsidianBlock); $this->level->setBlock(new Vector3($x, $y, $z+1),new ObsidianBlock); @@ -201,7 +201,7 @@ class NetherReactorBlock extends SolidBlock{ } return false; case "R": - if($b === NETHER_REACTOR){ + if($b === NETHER_REACTOR and $this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getMetadata() === 0){ break; } return false;