From 657661749a4e130e9927aa8c0e331365dfe746af Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 12 Feb 2023 22:41:27 +0100 Subject: [PATCH] Disconnect only in multiplayer --- kubi/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubi/src/main.rs b/kubi/src/main.rs index 3032daf..2e8d9dd 100644 --- a/kubi/src/main.rs +++ b/kubi/src/main.rs @@ -7,7 +7,7 @@ use shipyard::{ World, Workload, IntoWorkload, UniqueView, UniqueViewMut, - NonSendSync, WorkloadModificator + NonSendSync, WorkloadModificator, SystemModificator }; use glium::{ glutin::{ @@ -125,7 +125,7 @@ fn update() -> Workload { update_gui, update_state, exit_on_esc, - disconnect_on_exit, + disconnect_on_exit.run_if(is_multiplayer), ).into_workload() } fn render() -> Workload {