mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
reactor fix
This commit is contained in:
parent
940797b16f
commit
d83cb91c6c
1 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ class NetherReactorBlock extends SolidBlock{
|
|||
}
|
||||
|
||||
private function pigmenCheck($x,$y,$z) {
|
||||
$pigCount = 0;
|
||||
a $pigCount = 0;
|
||||
$server = ServerAPI::request();
|
||||
$allEntities = $server->api->entity->entities;
|
||||
foreach($allEntities as $entity) {
|
||||
|
|
@ -188,7 +188,7 @@ class NetherReactorBlock extends SolidBlock{
|
|||
foreach($this->core as $yOffset => $layer){
|
||||
foreach($layer as $line){
|
||||
foreach(str_split($line) as $char){
|
||||
$b = $this->level->getBlockWithoutVector(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ));
|
||||
$b = $this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ));
|
||||
switch($char){
|
||||
case "G":
|
||||
if($b === GOLD_BLOCK){ //TODO make it use structure class
|
||||
|
|
@ -236,4 +236,4 @@ class NetherReactorBlock extends SolidBlock{
|
|||
0 => ["C C", " R ", "C C",],
|
||||
1 =>[" C ", "CCC", " C "]
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue