menu
#4531384 mt_rand(): max(0) is smaller than min(1)

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-16 05:28:04 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux b10ad05f-b982-4ff1-b2dc-7526150b1f9a 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64

Error information

Warning: the OreGen plugin was directly involved in this crash. Please contact the plugin author.
Message: mt_rand(): max(0) is smaller than min(1)
File: plugins/OreGen (2).phar/src/Xenophilicy/OreGen/OreGen
Line: #61
Error level: ErrorException
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
            for ($target = 2; $target <= 5; $target++) {
$blockSide = $block->getSide($target);
if ($blockSide instanceof Water) {
$waterPresent = true;
}
elseif ($blockSide instanceof Lava) {
$lavaPresent = true;
}
if ($waterPresent && $lavaPresent) {
$pickBlock = mt_rand(1, $this->config->get("Probability"));
switch ($pickBlock) {
case 1:
if($coal){
$placeBlock = Block::get(Block::COAL_ORE);
}
else{
$placeBlock = $defaultBlock;
}
break;
case 2:
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[40] mt_rand(): max(0) is smaller than min(1), string[80] phar:///home/container/plugins/OreGen (2).phar/src/Xenophilicy/OreGen/OreGen.php, integer 61, array[13])
#1 plugins/OreGen (2).phar/src/Xenophilicy/OreGen/OreGen(61): mt_rand(integer 1, boolean )
#2 src/pocketmine/plugin/MethodEventExecutor(42): Xenophilicy\OreGen\OreGen->onBlockSet(object pocketmine\event\block\BlockUpdateEvent)
#3 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Xenophilicy\OreGen\OreGen, object pocketmine\event\block\BlockUpdateEvent)
#4 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\block\BlockUpdateEvent)
#5 src/pocketmine/level/Level(1639): pocketmine\event\Event->call()
#6 src/pocketmine/block/Liquid(446): pocketmine\level\Level->setBlock(object pocketmine\level\Position, object pocketmine\block\Cobblestone, boolean 1, boolean 1)
#7 src/pocketmine/block/Lava(89): pocketmine\block\Liquid->liquidCollide(object pocketmine\block\Water, object pocketmine\block\Cobblestone)
#8 src/pocketmine/block/Liquid(220): pocketmine\block\Lava->checkForHarden()
#9 src/pocketmine/level/Level(1644): pocketmine\block\Liquid->onNearbyBlockChange()
#10 src/pocketmine/block/Liquid(312): pocketmine\level\Level->setBlock(object pocketmine\level\Position, object Xenophilicy\TableSpoon\block\Lava, boolean 1, boolean 1)
#11 src/pocketmine/block/Lava(98): pocketmine\block\Liquid->flowIntoBlock(object pocketmine\block\Air, integer 2)
#12 src/pocketmine/block/Liquid(282): pocketmine\block\Lava->flowIntoBlock(object pocketmine\block\Air, integer 2)
#13 src/pocketmine/level/Level(828): pocketmine\block\Liquid->onScheduledUpdate()
#14 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 3281)
#15 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 3281)
#16 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 3281, double 1600234084.9112)
#17 src/pocketmine/Server(2154): pocketmine\Server->tick()
#18 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#19 src/pocketmine/Server(1588): pocketmine\Server->start()
#20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#21 src/pocketmine/PocketMine(304): pocketmine\server()
#22 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies