small fixes

This commit is contained in:
GameHerobrine 2023-01-15 00:00:37 +03:00
parent 8b9cdc6307
commit 0e3f78fbf7
5 changed files with 29 additions and 40 deletions

View file

@ -9,7 +9,7 @@ class NetherReactorBlock extends SolidBlock{
public function onActivate(Item $item, Player $player){
//if(($item->getID() === IRON_SWORD || $item->getID() === WOODEN_SWORD || $item->getID() === STONE_SWORD || $item->getID() === DIAMOND_SWORD || $item->getID() === GOLD_SWORD) /*&& $player->gamemode === 0*/){
if($this->isCorrect($this->getX(),$this->getY(),$this->getZ()) && $this->getY() < 101 && NetherReactorBlock::$enableReactor){
if($this->getMetadata() === 0 && $this->isCorrect($this->getX(),$this->getY(),$this->getZ()) && $this->getY() < 101 && NetherReactorBlock::$enableReactor){
NetherReactorStructure::buildReactor($this->level, $this->getX(),$this->getY(),$this->getZ());
$this->meta = 1;
$this->level->setBlock($this,$this);