MysteryBox icon indicating copy to clipboard operation
MysteryBox copied to clipboard

Plugin combi error mysterybox spawn

Open genboy opened this issue 6 years ago • 2 comments

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 https://github.com/genboy/Festival/issues/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!

genboy avatar Oct 25 '19 12:10 genboy

I'll check this later on

TheAz928 avatar Mar 02 '20 10:03 TheAz928

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

genboy avatar May 16 '20 14:05 genboy