Skip to content

Commit 85c06a6

Browse files
committed
Remove TerrainObject::init()
1 parent 9cf13c5 commit 85c06a6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/muqsit/vanillagenerator/generator/object/TerrainObject.php

-13
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace muqsit\vanillagenerator\generator\object;
66

7-
use pocketmine\block\BlockTypeIds;
87
use pocketmine\block\Flowable;
98
use pocketmine\block\VanillaBlocks;
109
use pocketmine\utils\Random;
@@ -13,16 +12,6 @@
1312

1413
abstract class TerrainObject{
1514

16-
/** @var int[] */
17-
private static array $PLANT_TYPES;
18-
19-
public static function init() : void{
20-
self::$PLANT_TYPES = [];
21-
foreach([BlockTypeIds::TALL_GRASS, BlockTypeIds::DANDELION, BlockTypeIds::POPPY, BlockTypeIds::DOUBLE_TALLGRASS, BlockTypeIds::BROWN_MUSHROOM, BlockTypeIds::RED_MUSHROOM] as $block_id){
22-
self::$PLANT_TYPES[$block_id] = $block_id;
23-
}
24-
}
25-
2615
/**
2716
* Removes weak blocks like grass, shrub, flower or mushroom directly above the given block, if present.
2817
* Does not drop an item.
@@ -62,5 +51,3 @@ public static function killWeakBlocksAbove(ChunkManager $world, int $x, int $y,
6251
*/
6352
abstract public function generate(ChunkManager $world, Random $random, int $source_x, int $source_y, int $source_z) : bool;
6453
}
65-
66-
TerrainObject::init();

0 commit comments

Comments
 (0)