Ad5001 / BetterGen

PocketMine's Tomorrow's World Generator. Mirror of
https://git.ad5001.eu/Ad5001/BetterGen
Other
58 stars 27 forks source link

Undefined constant - plank #28

Closed kabluinc closed 6 years ago

kabluinc commented 7 years ago

Getting this error when generating a world with /createworld. [20:16:12] [Asynchronous Worker #2 thread/CRITICAL]: Error: "Undefined class constant 'pocketmine\block\Block::PLANK'" (EXCEPTION) in "/plugins/BetterGen-master/src/Ad5001/BetterGen/utils/BuildingUtils" at line 198 [20:16:12] [Asynchronous Worker #1 thread/CRITICAL]: Error: "Undefined class constant 'pocketmine\block\Block::PLANK'" (EXCEPTION) in "/plugins/BetterGen-master/src/Ad5001/BetterGen/utils/BuildingUtils" at line 198 [20:16:13] [Asynchronous Worker #2 thread/CRITICAL]: Error: "Undefined class constant 'pocketmine\block\Block::PLANK'" (EXCEPTION) in "/plugins/BetterGen-master/src/Ad5001/BetterGen/utils/BuildingUtils" at line 198 [20:16:13] [Server thread/CRITICAL]: Could not execute asynchronous task PopulationTask: Task crashed

gitgarage commented 6 years ago

I was able to resolve this error by replacing PLANK with PLANKS in /plugins/BetterGen/src/Ad5001/BetterGen/utils/BuildingUtils.php and /plugins/BetterGen/src/Ad5001/BetterGen/populator/MineshaftPopulator.php

Ad5001 commented 6 years ago

Fixed.