From 4d48d36976dae85fcd46a605408b006857f1f9fd Mon Sep 17 00:00:00 2001 From: Roman / Nea Date: Thu, 11 Aug 2022 13:18:16 +0200 Subject: Autoupdate (#191) Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> --- src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java') 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 getSearchedItems() { + public synchronized List getSearchedItems() { if (searchedItems == null) { updateSearch(); return new ArrayList<>(); -- cgit