From 3e8a96e83fb02aa52cfeee9cf9e215b385cfdbcb Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 13 Aug 2024 20:51:23 +0200 Subject: fix(engine): remove emitting start This caused two start events being emitted --- engine/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'engine/src/lib.rs') diff --git a/engine/src/lib.rs b/engine/src/lib.rs index 3080047..9400e56 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -14,7 +14,6 @@ use crate::event::{ PostPresent as PostPresentEvent, PreUpdate as PreUpdateEvent, Present as PresentEvent, - Start as StartEvent, Update as UpdateEvent, }; @@ -104,11 +103,9 @@ impl Engine self.world.add_extension(extension); } - /// Emits the [`StartEvent`] event and then runs the event loop. + /// Runs the event loop. pub fn start(&self) { - self.world.emit(StartEvent); - self.world.event_loop::(); } } -- cgit v1.2.3-18-g5258