You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function populateChunk(int $chunkX, int $chunkZ) :void {
** This is a change I am not sure if it's ok, knda patchwork.
the error was : Fatal error: Class Ad5001\BetterGen\generator\BetterBiomeSelector contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (pocketmine\level\generator\biome\BiomeSelector::lookup) in /dwarf/minecraft-svr/bettergen/plugins/BetterGen/src/Ad5001/BetterGen/generator/BetterBiomeSelector.php on line 25
Hello @savardmax,
For theses kind of things, you are encouraged to fork the project, add your changes, and do a pull-request wih this blocking issue :).
Furthermore, the project on github is mostly a mirror. I'd recommand you making that pull request on https://git.ad5001.eu
I managed to get the plugin to world by making the following changes mostly due to the biome class move. I hope others can enjoy this pluging.
/src/Ad5001/BetterGen/biome/BetterDesert.php
-use pocketmine\level\generator\biome\Biome;
-use pocketmine\level\generator\normal\biome\SandyBiome;
+use pocketmine\level\biome\Biome;
+use pocketmine\level\biome\SandyBiome;
/src/Ad5001/BetterGen/biome/BetterForest.php
-use pocketmine\level\generator\biome\Biome;
-use pocketmine\level\generator\normal\biome\ForestBiome;
+use pocketmine\level\biome\Biome;
+use pocketmine\level\biome\ForestBiome;
/src/Ad5001/BetterGen/biome/BetterIcePlains.php
-use pocketmine\level\generator\biome\Biome;
-use pocketmine\level\generator\normal\biome\SnowyBiome;
+use pocketmine\level\biome\Biome;
+use pocketmine\level\biome\SnowyBiome;
/src/Ad5001/BetterGen/biome/BetterMesa.php
-use pocketmine\level\generator\normal\biome\SandyBiome;
+use pocketmine\level\biome\SandyBiome;
/src/Ad5001/BetterGen/biome/BetterMesaPlains.php
-use pocketmine\level\generator\normal\biome\SandyBiome;
+use pocketmine\level\biome\SandyBiome;
/src/Ad5001/BetterGen/biome/BetterRiver.php
-use pocketmine\level\generator\biome\Biome;
+use pocketmine\level\biome\Biome;
/src/Ad5001/BetterGen/populator/DeadbushPopulator.php
-use pocketmine\level\generator\biome\Biome;
+use pocketmine\level\biome\Biome;
/src/Ad5001/BetterGen/generator/BetterNormal.php
-use pocketmine\level\generator\biome\Biome;
+use pocketmine\level\biome\Biome;
** This is a change I am not sure if it's ok, knda patchwork.
the error was : Fatal error: Class Ad5001\BetterGen\generator\BetterBiomeSelector contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (pocketmine\level\generator\biome\BiomeSelector::lookup) in /dwarf/minecraft-svr/bettergen/plugins/BetterGen/src/Ad5001/BetterGen/generator/BetterBiomeSelector.php on line 25
/src/Ad5001/BetterGen/generator/BetterBiomeSelector.php
protected function lookup(float $temperature, float $rainfall) : int{
}
The text was updated successfully, but these errors were encountered: