Skip to content

Commit

Permalink
Merge pull request #346 from RJ/cmd-fix
Browse files Browse the repository at this point in the history
Command::apply, not write - fix bevy_matchbox with signaling feature
  • Loading branch information
johanhelsing authored Oct 21, 2023
2 parents 67b0d56 + 06cd064 commit 98f40ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bevy_matchbox/src/signaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ where
Cb: SignalingCallbacks,
S: SignalingState,
{
fn write(self, world: &mut bevy::prelude::World) {
fn apply(self, world: &mut bevy::prelude::World) {
world.insert_resource(MatchboxServer::from(self.0))
}
}
Expand Down Expand Up @@ -127,7 +127,7 @@ where
struct StopServer;

impl Command for StopServer {
fn write(self, world: &mut bevy::prelude::World) {
fn apply(self, world: &mut bevy::prelude::World) {
world.remove_resource::<MatchboxServer>();
}
}
Expand Down

0 comments on commit 98f40ea

Please sign in to comment.