menu
#3238243 Out of memory (allocated 239075328) (tried to allocate 4194312 bytes)

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-12-01 12:45:25 +0000 UTC

System Information

PHP version: 7.2.19
Operating system: win
System banner: Windows NT LAPTOP-J2NI25SE 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: the MagicWE2 plugin was directly involved in this crash. Please contact the plugin author.
Message: Out of memory (allocated 239075328) (tried to allocate 4194312 bytes)
File: plugins/WorldEdit_5.7.phar/src/xenialdan/MagicWE2/Selection
Line: #111
Error level: E_ERROR
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
	 */
public function getBlocks(int $flags, Block ...$filterblocks){
$blocks = [];
for ($x = floor($this->getAxisAlignedBB()->minX); $x <= floor($this->getAxisAlignedBB()->maxX); $x++){
for ($y = floor($this->getAxisAlignedBB()->minY); $y <= floor($this->getAxisAlignedBB()->maxY); $y++){
for ($z = floor($this->getAxisAlignedBB()->minZ); $z <= floor($this->getAxisAlignedBB()->maxZ); $z++){
$block = $this->getLevel()->getBlock(new Vector3($x, $y, $z));
#$block->setComponents((int)$x,(int)$y,(int)$z);
$block->position(new Position((int)$x, (int)$y, (int)$z, $this->getLevel()));
if (empty($filterblocks)) $blocks[] = $block;
else{
foreach ($filterblocks as $filterblock){
if (($block->getId() === $filterblock->getId()) && ((API::hasFlag($flags, API::FLAG_VARIANT) && $block->getVariant() === $filterblock->getVariant()) || (!API::hasFlag($flags, API::FLAG_VARIANT) && ($block->getDamage() === $filterblock->getDamage() || API::hasFlag($flags, API::FLAG_KEEP_META)))))
$blocks[] = $block;
}
}
}
}
}
return $blocks;

Loaded Plugins

  • Show

Server Settings

  • Show