aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2021-07-23 02:44:58 +0800
committerBuildTools <james.jenour@protonmail.com>2021-07-23 02:44:58 +0800
commit9814220f8a621f4c310c5f38c57c6bcab358c707 (patch)
tree59377672fad4cb804841f7b5d641c2ba6948f4f4 /src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
parent47438cca0b864602b4faa3b56195aff4278b2094 (diff)
downloadnotenoughupdates-9814220f8a621f4c310c5f38c57c6bcab358c707.tar.gz
notenoughupdates-9814220f8a621f4c310c5f38c57c6bcab358c707.tar.bz2
notenoughupdates-9814220f8a621f4c310c5f38c57c6bcab358c707.zip
PRE30
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
index e525117c..224953c9 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
@@ -1241,6 +1241,7 @@ public class StorageOverlay extends GuiElement {
GlStateManager.translate(0, 0, 300);
allowTypingInSearchBar = false;
if(stackOnMouse != null) {
+ GlStateManager.enableDepth();
if(hoveringOtherBackpack) {
Utils.drawItemStack(new ItemStack(Item.getItemFromBlock(Blocks.barrier)), mouseX - 8, mouseY - 8);
} else {
@@ -1649,8 +1650,8 @@ public class StorageOverlay extends GuiElement {
sizeIndex++;
}
size = sizeIndex*54+104;
- if(size < 104) size = 104;
- if(size > 312) size = 312;
+ if(size < 104) size = 312;
+ if(size > 320) size = 104;
desiredHeightMX = mouseX;
desiredHeightMY = mouseY;
desiredHeightSwitch = size; break;
@@ -1898,9 +1899,10 @@ public class StorageOverlay extends GuiElement {
searchBar.getText().isEmpty()) {
searchBar.setFocus(false);
}
+ } else if(Keyboard.getEventKey() == Keyboard.KEY_E) {
+ return false;
}
-
}
return true;