Skip to content

is_plugin_added is always true for Self  #13815

Closed
@kristoff3r

Description

@kristoff3r

Bevy version

0.14.0-rc.2

What you did

The following program panics in Bevy 0.14.0-rc.2, but runs successfully in 0.13.2

use bevy::prelude::*;

fn main() {
    let app = App::new().add_plugins(Foo);
}

pub struct Foo;

impl Plugin for Foo {
    fn build(&self, app: &mut App) {
        if app.is_plugin_added::<Self>() {
            panic!()
        }
    }
}

What went wrong

Either the previous behavior should be restored, or we should document it in the migration guide.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AppBevy apps and pluginsC-BugAn unexpected or incorrect behaviorS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions