mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
small fixes
This commit is contained in:
parent
8b9cdc6307
commit
0e3f78fbf7
5 changed files with 29 additions and 40 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue