aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
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;
}
}