menu
#7034372 Cannot set a block in un-generated terrain

Submitted by PocketMine-MP 4.5.2+dev

General information

Version: 4.5.2+dev
Git commit: e6a3107b
Plugin involvement: None
Report date: 2022-06-23 11:24:28 +0000 UTC
Server uptime: 0 days 5 hours 48 minutes 2 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux Hypixtrystore 5.4.0-1083-azure #87~18.04.1-Ubuntu SMP Fri Jun 3 13:19:07 UTC 2022 x86_64

Error information

Message: Cannot set a block in un-generated terrain
File: pmsrc/src/world/World
Line: #1644
Error level: pocketmine\world\WorldException
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
	 * @throws \InvalidArgumentException if the position is out of the world bounds
*/
public function setBlockAt(int $x, int $y, int $z, Block $block, bool $update = true) : void{
if(!$this->isInWorld($x, $y, $z)){
throw new \InvalidArgumentException("Pos x=$x,y=$y,z=$z is outside of the world bounds");
}
$chunkX = $x >> Chunk::COORD_BIT_SIZE;
$chunkZ = $z >> Chunk::COORD_BIT_SIZE;
if($this->loadChunk($chunkX, $chunkZ) === null){ //current expected behaviour is to try to load the terrain synchronously
throw new WorldException("Cannot set a block in un-generated terrain");
}

$this->timings->setBlock->startTiming();

$this->unlockChunk($chunkX, $chunkZ, null);

$block = clone $block;

$block->position($this, $x, $y, $z);
$block->writeStateToWorld();
#0 pmsrc/src/world/World(1626): pocketmine\world\World->setBlockAt(int 96, int 2, int 37, object pocketmine\block\Water#646404, true)
#1 pmsrc/src/block/Liquid(355): pocketmine\world\World->setBlock(object pocketmine\world\Position#648097, object pocketmine\block\Water#646404)
#2 pmsrc/src/block/Liquid(334): pocketmine\block\Liquid->flowIntoBlock(object pocketmine\block\Air#667047, int 1, false)
#3 pmsrc/src/world/World(872): pocketmine\block\Liquid->onScheduledUpdate()
#4 pmsrc/src/world/World(829): pocketmine\world\World->actuallyDoTick(int 417582)
#5 pmsrc/src/world/WorldManager(348): pocketmine\world\World->doTick(int 417582)
#6 pmsrc/src/Server(1824): pocketmine\world\WorldManager->tick(int 417582)
#7 pmsrc/src/Server(1706): pocketmine\Server->tick()
#8 pmsrc/src/Server(1068): pocketmine\Server->tickProcessor()
#9 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[11] /root/raft/, string[19] /root/raft/plugins/)
#10 pmsrc/src/PocketMine(327): pocketmine\server()
#11 pmsrc(11): require(string[55] phar:///root/raft/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show