names were fixed, ->loop->stop();

This commit is contained in:
GameHerobrine 2023-01-04 20:46:17 +03:00
parent 50006a0189
commit f6897cf862
242 changed files with 111 additions and 166 deletions

View file

@ -1,7 +1,7 @@
<?php
/***REM_START***/
require_once("SignPost.php");
require_once("SignPostBlock.php");
/***REM_END***/
class WallSignBlock extends SignPostBlock{

View file

@ -2,7 +2,7 @@
/***REM_START***/
require_once("Water.php");
require_once("WaterBlock.php"); //TODO class loader?
/***REM_END***/
class StillWaterBlock extends WaterBlock{

View file

@ -58,7 +58,7 @@ class NetherReactorBlock extends SolidBlock{
}
private function decay($x, $y, $z, $aOne, $aTwo, $aThree, $bOne, $bTwo, $bThree, $cOne, $cTwo, $cThree) {
for($a = $aOne; $a < $aTwo; $a += $aThree) { //wth those cycles are?
for($a = $aOne; $a < $aTwo; $a += $aThree) { //wth those cycles are? TODO simplify if possible(makes server lag)
for($b = $bOne; $b < $bTwo; $b += $bThree) {
for($c = $cOne; $c < $cTwo; $c += $cThree) {
if ($this->level->getBlock(new Vector3($x+$a, $y+$b, $z+$c))->getID() === 87 && Utils::randomFloat() > 0.75){
@ -188,24 +188,25 @@ 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));
switch($char){
case "G":
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === GOLD_BLOCK){
if($b === GOLD_BLOCK){ //TODO make it use structure class
break;
}
return false;
case "C":
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === COBBLESTONE){
if($b === COBBLESTONE){
break;
}
return false;
case "R":
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === NETHER_REACTOR){
if($b === NETHER_REACTOR){
break;
}
return false;
case " ":
if($this->level->getBlock(new Vector3($x + $offsetX, $y + $yOffset, $z + $offsetZ))->getID() === 0){
if($b->getID() === 0){
break;
}
return false;

View file

@ -30,7 +30,7 @@ class RailBlock extends FlowableBlock{
if(!($rail instanceof RailBlock)) return null;
$damage = $rail->meta;
if ($damage < 0 || $damage > 10) return null;
$delta = array(
$delta = array( //TODO make static
array(array(0, 1), array(0, -1)),
array(array(1, 0), array(-1, 0)),
array(array(1, 0), array(-1, 0)),

View file

@ -3,7 +3,7 @@
class SlabBlock extends TransparentBlock{
public function __construct($meta = 0){
parent::__construct(SLAB, $meta, "Slab");
$names = array(
$names = array( //TODO make it static
0 => "Stone",
1 => "Sandstone",
2 => "Wooden",

View file

@ -1,7 +1,7 @@
<?php
/***REM_START***/
require_once("BurningFurnace.php");
require_once("BurningFurnaceBlock.php");
/***REM_END***/

Some files were not shown because too many files have changed in this diff Show more