mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
PHP 7.4.21 fixes part 2
This commit is contained in:
parent
e93e81222a
commit
7877b4fe94
10 changed files with 23 additions and 23 deletions
|
|
@ -201,26 +201,26 @@ class NetherReactorBlock extends SolidBlock{
|
|||
switch($char){
|
||||
case "G":
|
||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === GOLD_BLOCK){
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
return false;
|
||||
case "C":
|
||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === COBBLESTONE){
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
return false;
|
||||
case "R":
|
||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === NETHER_REACTOR){
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
return false;
|
||||
case " ":
|
||||
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === 0){
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
++$offsetX;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,9 +92,9 @@ class RailBlock extends FlowableBlock{
|
|||
}
|
||||
foreach($deltaY as $y){
|
||||
$v3 = new Vector3(
|
||||
$rail.getFloorX() + $blocks[1][0],
|
||||
$rail.getFloorY() + $y,
|
||||
$rail.getFloorZ() + $blocks[1][1]
|
||||
$rail->getFloorX() + $blocks[1][0],
|
||||
$rail->getFloorY() + $y,
|
||||
$rail->getFloorZ() + $blocks[1][1]
|
||||
);
|
||||
$idToConnect = $rail->level->getBlock(v3.getFloorX(), v3.getFloorY(), v3.getFloorZ())->getID();
|
||||
$metaToConnect = $rail->level->getBlock(v3.getFloorX(), v3.getFloorY(), v3.getFloorZ())->getMetadata();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue