diff options
| author | Roman / Nea <roman.graef@gmail.com> | 2022-08-11 13:18:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-11 21:18:16 +1000 |
| commit | 4d48d36976dae85fcd46a605408b006857f1f9fd (patch) | |
| tree | b44cfd3ba9d51c1c77f1d587880622a61f1773b1 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | 74ae776a74bd6d0b24df7354e49287a42600011a (diff) | |
| download | notenoughupdates-4d48d36976dae85fcd46a605408b006857f1f9fd.tar.gz notenoughupdates-4d48d36976dae85fcd46a605408b006857f1f9fd.tar.bz2 notenoughupdates-4d48d36976dae85fcd46a605408b006857f1f9fd.zip | |
Autoupdate (#191)
Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index e51f118e..19f5a780 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -813,7 +813,7 @@ public class NEUOverlay extends Gui { /** * Handles the mouse input, cancelling the forge event if a NEU gui element is clicked. */ - public boolean mouseInput() { + public synchronized boolean mouseInput() { if (disabled) { return false; } @@ -1483,7 +1483,7 @@ public class NEUOverlay extends Gui { * Returns an index-able array containing the elements in searchedItems. * Whenever searchedItems is updated in updateSearch(), the array is recreated here. */ - public List<JsonObject> getSearchedItems() { + public synchronized List<JsonObject> getSearchedItems() { if (searchedItems == null) { updateSearch(); return new ArrayList<>(); |
