merged duplicated if (!isDedicated) then {