mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
break
This commit is contained in:
parent
6f99648a72
commit
4ee56a48aa
1 changed files with 5 additions and 5 deletions
|
|
@ -201,26 +201,26 @@ class NetherReactorBlock extends SolidBlock{
|
||||||
switch($char){
|
switch($char){
|
||||||
case "G":
|
case "G":
|
||||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === GOLD_BLOCK){
|
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === GOLD_BLOCK){
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case "C":
|
case "C":
|
||||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === COBBLESTONE){
|
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === COBBLESTONE){
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case "R":
|
case "R":
|
||||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === NETHER_REACTOR){
|
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === NETHER_REACTOR){
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case " ":
|
case " ":
|
||||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === 0){
|
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === 0){
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
++$offsetX;
|
++$offsetX;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue