Undefined constant - plank
Closed this issue · 2 comments
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
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
Fixed.