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

Error getBreedPartner #353

madhatter1979 opened this issue Jul 24, 2019 · 2 comments


Copy link

commented Jul 24, 2019

Required Information

PocketMine-MP Version: (7.3.7)
Plugin Version: (0.6.2)
Where you got the plugin: (

Optional Information

PHP version: 7.3.7
Other Installed Plugins: TeaSpoon 1.2.0
OS Version: WINNT, win 10 home

Steps to reproduce the issue.

Unsure it worked fine yesterday now as soon as I login it crashes.

Unsure it worked fine yesterday now as soon as I login it crashes.

`Error: Class 'pocketmine\network\mcpe\protocol\EntityEventPacket' not found
File: plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/components/BreedingComponent
Line: 329
Type: Error

BAD PLUGIN: PureEntitiesX v0.6.2

[320] 				$this->breed($this->getBreedPartner());
[321] 				return true;
[322] 			}
[325] 			// emit heart particles ...
[326] 			if($this->inLoveTimer >= self::IN_LOVE_EMIT_DELAY and $this->emitLoveParticles){
[327] 				foreach($this->entity->getLevel()->getPlayers() as $player){ // don't know if this is the correct one :/
[328] 					if($player->distance($this->entity) <= 49){
[329] 						$pk = new EntityEventPacket();
[330] 						$pk->entityRuntimeId = $this->entity->getId();
[331] 						$pk->event = EntityEventPacket::TAME_SUCCESS; // i think this plays the "heart" animation
[332] 						$player->dataPacket($pk);
[333] 					}
[334] 				}
[335] 				$this->inLoveTimer = 0;
[336] 			}else if($this->emitLoveParticles){
[337] 				$this->inLoveTimer++;
[338] 			}
[339] `


This comment has been minimized.

Copy link

commented Jul 24, 2019

The PocketMine-MP version is wrong. This is likely happening because of changes in PocketMine-MP 3.9.0.


This comment has been minimized.

Copy link

commented Jul 24, 2019

oh sorry bout that got that mixed up with php version I'm on 3.9,2 I also think I've found the issue but I can't get at the php code to try a fix. It appears that [EntityEventPacket] is now [ActorEventPacket] so BreedingComponent.php needs to be updated to reflect that.

The following classes in the \pocketmine\network\mcpe\protocol namespace have been renamed:
EntityEventPacket -> ActorEventPacket

@95CivicSi 95CivicSi closed this in 6b614d6 Jul 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.