File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -129,19 +129,12 @@ impl MapElement for Level {
129
129
encoder. attribute ( "musicProgress" , progress. clone ( ) ) ;
130
130
}
131
131
encoder. optional_attribute ( "ambience" , & self . ambience ) ;
132
- if let Some ( progress) = & self . ambience_progress {
133
- encoder. attribute ( "ambienceProgress" , progress. clone ( ) ) ;
134
- }
132
+ encoder. optional_attribute ( "ambienceProgress" , & self . ambience_progress ) ;
135
133
encoder. attribute ( "underwater" , self . underwater ) ;
136
134
encoder. optional_attribute ( "space" , & self . space ) ;
137
135
encoder. optional_attribute ( "disableDownTransition" , & self . disable_down_transition ) ;
138
- if let Some ( whisper) = self . whisper {
139
- encoder. attribute ( "whisper" , whisper) ;
140
- }
141
-
142
- if let Some ( alt_music_fade) = self . delay_alt_music_fade {
143
- encoder. attribute ( "delayAltMusicFade" , alt_music_fade) ;
144
- }
136
+ encoder. optional_attribute ( "whisper" , & self . whisper ) ;
137
+ encoder. optional_attribute ( "delayAltMusicFade" , & self . delay_alt_music_fade ) ;
145
138
encoder. optional_attribute ( "enforceDashNumber" , & self . enforce_dash_number ) ;
146
139
encoder. attribute ( "x" , self . x ) ;
147
140
encoder. attribute ( "y" , self . y ) ;
You can’t perform that action at this time.
0 commit comments