aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-01-26 05:38:57 +1100
committerGitHub <noreply@github.com>2023-01-25 19:38:57 +0100
commitf1ce88fb8e98b41a10ba374d32cb312b949ba8ef (patch)
tree000e4ac77d16e905a1c00d9dfc4de0bfe4c84b54 /src
parentd1eb2d2b2820112d1ca03cecb0e3533fabbc0fec (diff)
downloadNotEnoughUpdates-f1ce88fb8e98b41a10ba374d32cb312b949ba8ef.tar.gz
NotEnoughUpdates-f1ce88fb8e98b41a10ba374d32cb312b949ba8ef.tar.bz2
NotEnoughUpdates-f1ce88fb8e98b41a10ba374d32cb312b949ba8ef.zip
Fixed double register of view uses or recipes (#552)
* Fixed double register of view uses or recipes * !
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java1
2 files changed, 1 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 7159ef89..cb0f3fc0 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -1046,7 +1046,7 @@ public class NEUOverlay extends Gui {
}
}
- if (Keyboard.getEventKeyState()) {
+ if (!Keyboard.getEventKeyState()) {
if (!NotEnoughUpdates.INSTANCE.config.toolbar.searchBar) {
searchBarHasFocus = false;
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
index aa977413..e81834d3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
@@ -28,7 +28,6 @@ import io.github.moulberry.notenoughupdates.recipes.RecipeHistory;
import io.github.moulberry.notenoughupdates.recipes.RecipeSlot;
import io.github.moulberry.notenoughupdates.recipes.RecipeType;
import io.github.moulberry.notenoughupdates.util.Utils;
-import lombok.var;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiButton;