fix the save events

This commit is contained in:
yugecin
2016-12-11 16:46:47 +01:00
parent 066382d4bf
commit 7ff55b87c8

View File

@@ -407,16 +407,12 @@ public class OptionsOverlay {
return; return;
} }
if (hoverOption != null) { if (hoverOption != null && hoverOption.getType() == OptionType.BOOLEAN) {
if (hoverOption.getType() != OptionType.NUMERIC) {
parent.onSaveOption(hoverOption);
}
if (hoverOption.getType() == OptionType.BOOLEAN) {
hoverOption.click(container); hoverOption.click(container);
parent.onSaveOption(hoverOption);
SoundController.playSound(SoundEffect.MENUHIT); SoundController.playSound(SoundEffect.MENUHIT);
return; return;
} }
}
// check if tab was clicked // check if tab was clicked
int tScrollOffset = 0; int tScrollOffset = 0;