File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl ClientEventAppExt for App {
128128 . create_client_channel ( policy. into ( ) ) ;
129129
130130 self . add_event :: < T > ( )
131- . add_event :: < FromClient < T > > ( )
131+ . init_resource :: < Events < FromClient < T > > > ( )
132132 . insert_resource ( EventChannel :: < T > :: new ( channel_id) )
133133 . add_systems (
134134 PreUpdate ,
@@ -139,12 +139,11 @@ impl ClientEventAppExt for App {
139139 . add_systems (
140140 PostUpdate ,
141141 (
142- sending_system
143- . in_set ( ClientSet :: Send )
144- . run_if ( client_connected ( ) ) ,
142+ sending_system. run_if ( client_connected ( ) ) ,
145143 local_resending_system :: < T > . run_if ( has_authority ( ) ) ,
146144 )
147- . chain ( ) ,
145+ . chain ( )
146+ . in_set ( ClientSet :: Send ) ,
148147 ) ;
149148
150149 self
Original file line number Diff line number Diff line change @@ -139,12 +139,11 @@ impl ServerEventAppExt for App {
139139 . add_systems (
140140 PostUpdate ,
141141 (
142- sending_system
143- . in_set ( ServerSet :: Send )
144- . run_if ( resource_exists :: < RenetServer > ( ) ) ,
142+ sending_system. run_if ( resource_exists :: < RenetServer > ( ) ) ,
145143 local_resending_system :: < T > . run_if ( has_authority ( ) ) ,
146144 )
147- . chain ( ) ,
145+ . chain ( )
146+ . in_set ( ServerSet :: Send ) ,
148147 ) ;
149148
150149 self
You can’t perform that action at this time.
0 commit comments