Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter Redefinition error in MineschaftPopulator #5

Closed
Leejit opened this issue May 5, 2017 · 0 comments
Closed

Parameter Redefinition error in MineschaftPopulator #5

Leejit opened this issue May 5, 2017 · 0 comments

Comments

@Leejit
Copy link

Leejit commented May 5, 2017

Error: Redefinition of parameter $level
File: /plugins/BetterGen-master/src/Ad5001/BetterGen/populator/MineshaftPopulator
Line: 134
Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN : BetterGen v1

Code:
[125] // First, filling everything blank.
[126] BuildingUtils::fill($this->level, new Vector3($x, $y, $z - 1 ), new Vector3($x - 4, $y + 2, $z + 1 ));
[127] // Then, making sure the floor is solid.
[128] BuildingUtils::fillCallback(new Vector3($x, $y - 1, $z - 1 ), new Vector3($x - 4, $y - 1, $z + 1 ), function ($v3, $level) {
[129]
[130] if ($level->getBlockIdAt($v3->x, $v3->y, $v3->z ) == Block::AIR)
[131] $level->setBlockIdAt($v3->x, $v3->y, $v3->z, Block::PLANK);
[132] }, $this->level);
[133] // Putting rails
[134] BuildingUtils::fillCallback(new Vector3($x, $y, $z ), new Vector3($x - 4, $y, $z ), function ($v3, $level, $level) {
[135] if ($random->nextBoundedInt(30 ) !== 0) {
[136] $level->setBlockIdAt($v3->x, $v3->y, $v3->z, Block::RAIL);
[137] $level->setBlockDataAt($v3->x, $v3->y, $v3->z, 1);
[138] }
[139] }, $this->level, $random);
[140] // After this, building the floor maintener (the wood structure)
[141] $level->setBlockIdAt($x, $y, $z - 1, Block::FENCE);
[142] $level->setBlockIdAt($x, $y, $z + 1, Block::FENCE);
[143] $level->setBlockIdAt($x, $y + 1, $z - 1, Block::FENCE);
[144] $level->setBlockIdAt($x, $y + 1, $z + 1, Block::FENCE);

Backtrace:
#0 (): pocketmine\Server->crashDump(boolean)

Tesseract version: 0000000000000000000000000000000000000000 [Protocol 107; API 3.0.1]
uname -a: Linux vps60265.vps.ovh.ca 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64
PHP version: 7.0.2
Zend version: 3.0.0
OS : Linux, linux

Server uptime: 27 seconds
Number of loaded worlds: 4
Players online: 1/75

Ad5001 added a commit that referenced this issue May 5, 2017
@Ad5001 Ad5001 changed the title Issue.... Parameter Redefinition error in MineschaftPopulator May 5, 2017
@Ad5001 Ad5001 added the bug label May 5, 2017
@Ad5001 Ad5001 closed this as completed May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants