Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Plugin combi error mysterybox spawn #22

Open
genboy opened this issue Oct 25, 2019 · 2 comments
Open

Plugin combi error mysterybox spawn #22

genboy opened this issue Oct 25, 2019 · 2 comments

Comments

@genboy
Copy link

genboy commented Oct 25, 2019

Hi @TheAz928 (and other coders) Mysterybox is a nice and fun plugin!

I'm developing the Festival plugin, which can protect area's and levels with flags. There is a mob- and an animals-flag to stop those specific type entities from spawning.

Now this combined with mysterybox inflicts an error genboy/Festival#118 when opening a mystery-chest.
I'm looking how to solve this, maybe there already is a clean workaround or solution?

I tried to filter out the action onEntitySpawn
if( $this->helper->isPluginLoaded( "MysteryBox" ) && $e instanceof mysterybox/entity/MysterySkull)
but still an error occurs

#0 plugins/Festival/src/genboy/Festival/Festival(2264): pocketmine\entity\Entity->getSaveId()
#1 plugins/Festival/src/genboy/Festival/Festival(1766): genboy\Festival\Festival->canEntitySpawn(object mysterybox\entity\MysterySkull)
#2 src/pocketmine/plugin/MethodEventExecutor(38): genboy\Festival\Festival->onEntitySpawn(object pocketmine\event\entity\EntitySpawnEvent)

Hope someone can help thank you!

@TheAz928
Copy link
Collaborator

TheAz928 commented Mar 2, 2020

I'll check this later on

@genboy
Copy link
Author

genboy commented May 16, 2020

@TheAz928 let me know if u know a solution, thank u

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants