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

Plugin combi error mysterybox spawn #22

Description

@genboy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions