diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-05-28 15:53:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-28 17:53:16 +0200 |
| commit | a6546a1abe954b394c40be58d73d6fb03d93709e (patch) | |
| tree | 39c6ac87ba3253dc302db31fdc99d115168ebb44 /src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java | |
| parent | 097542b6f2dfb0edb63afa00136f1fe610d57550 (diff) | |
| download | notenoughupdates-a6546a1abe954b394c40be58d73d6fb03d93709e.tar.gz notenoughupdates-a6546a1abe954b394c40be58d73d6fb03d93709e.tar.bz2 notenoughupdates-a6546a1abe954b394c40be58d73d6fb03d93709e.zip | |
added config saving (#149)
* i am unsure why this was here but it doesnt seem needed
* saving config when closing menus with configs
* Chatting
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java index 83ade3a9..43c04698 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java @@ -886,5 +886,8 @@ public class NEUConfigEditor extends GuiElement { target.setTarget(target.getTarget() - 5); } } + if (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) { + NotEnoughUpdates.INSTANCE.saveConfig(); + } } } |
