aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-09-03 10:55:36 +0200
committerDoKM <mcazzyman@gmail.com>2021-09-03 10:55:36 +0200
commit3124dd9341b3437cf7284534cc8779fe13a2c904 (patch)
treec69376862be1c85d294992732345e9e0abee2bc9 /src/main/java/io
parente3fa70ec3bed0667187c44c62764fe04eb182395 (diff)
downloadNotEnoughUpdates-3124dd9341b3437cf7284534cc8779fe13a2c904.tar.gz
NotEnoughUpdates-3124dd9341b3437cf7284534cc8779fe13a2c904.tar.bz2
NotEnoughUpdates-3124dd9341b3437cf7284534cc8779fe13a2c904.zip
some small fixes
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java2
2 files changed, 2 insertions, 2 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 d80a5daf..664d684b 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
@@ -1968,7 +1968,7 @@ public class StorageOverlay extends GuiElement {
}
public void fastRenderCheck(){
- if(!OpenGlHelper.isFramebufferEnabled()) {
+ if(!OpenGlHelper.isFramebufferEnabled() && NotEnoughUpdates.INSTANCE.config.storageGUI.enableStorageGUI3) {
this.fastRender = true;
NEUEventListener.displayNotification(Lists.newArrayList(
"\u00a74Fast Render Warning",
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java
index 56fa2e99..65c7d3f6 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/TimersOverlay.java
@@ -213,7 +213,7 @@ public class TimersOverlay extends TextOverlay {
return;
} else if(containerName.equals("Superpairs Rewards") && lower.getSizeInventory() >= 27){
ItemStack stack = lower.getStackInSlot(13);
- if(Utils.cleanColour(stack.getDisplayName()).equals("Superpairs")){
+ if(stack != null && Utils.cleanColour(stack.getDisplayName()).equals("Superpairs")){
hidden.experimentsCompleted = currentTime;
}
}