mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-21 09:59:45 +00:00
ADD: fire (and reduce options writings)
This commit is contained in:
parent
e49f58bc89
commit
ca2af5edb4
4 changed files with 4 additions and 15 deletions
|
|
@ -168,9 +168,7 @@ void Options::set(OptionId key, const std::string& value) {
|
|||
|
||||
if (option) {
|
||||
option->set(value);
|
||||
|
||||
notifyOptionUpdate(key, value);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -179,9 +177,7 @@ void Options::set(OptionId key, float value) {
|
|||
|
||||
if (option) {
|
||||
option->set(value);
|
||||
|
||||
notifyOptionUpdate(key, value);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -190,9 +186,7 @@ void Options::set(OptionId key, int value) {
|
|||
|
||||
if (option) {
|
||||
option->set(value);
|
||||
|
||||
notifyOptionUpdate(key, value);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -201,9 +195,7 @@ void Options::toggle(OptionId key) {
|
|||
|
||||
if (option) {
|
||||
option->toggle();
|
||||
|
||||
notifyOptionUpdate(key, option->get());
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue