aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java
diff options
context:
space:
mode:
authorBuildTools <james.jenour@protonmail.com>2020-07-08 16:28:49 +1000
committerBuildTools <james.jenour@protonmail.com>2020-07-08 16:28:49 +1000
commit7bdf7f256fe3968fe7129928c0a7100c30628bf9 (patch)
tree222deed2be57223e3b1703a638843fbf21a254e7 /src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java
parentf39c28236bc47a9e5395b041b494fdd7f332734e (diff)
downloadnotenoughupdates-7bdf7f256fe3968fe7129928c0a7100c30628bf9.tar.gz
notenoughupdates-7bdf7f256fe3968fe7129928c0a7100c30628bf9.tar.bz2
notenoughupdates-7bdf7f256fe3968fe7129928c0a7100c30628bf9.zip
1.9.7
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java b/src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java
index 707e392b..8d53a152 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/infopanes/CollectionLogInfoPane.java
@@ -37,6 +37,8 @@ public class CollectionLogInfoPane extends ScrollableInfoPane {
private int previousAcquiredCount = 0;
private int previousScroll = 0;
+ private int previousX = 0;
+ private int previousFilter = 0;
private static final int FILTER_ALL = 0;
private static final int FILTER_WEAPON = 1;
@@ -270,12 +272,14 @@ public class CollectionLogInfoPane extends ScrollableInfoPane {
scaledresolution.getScaleFactor());
if(!manager.config.cacheRenderedItempane.value || previousAcquiredCount != getCurrentAcquiredCount() ||
- previousScroll != scrollHeight.getValue()) {
+ previousScroll != scrollHeight.getValue() || previousX != left || previousFilter != filterMode) {
renderItemsToImage(itemFramebuffer, fg, left+5, right, top+1, bottom);
renderItemBGToImage(itemBGFramebuffer, fg, left+5, right, top+1, bottom);
}
previousAcquiredCount = getCurrentAcquiredCount();
previousScroll = scrollHeight.getValue();
+ previousX = left;
+ previousFilter = filterMode;
Minecraft.getMinecraft().getFramebuffer().bindFramebuffer(true);
renderFromImage(itemBGFramebuffer, width, height, left, right, top, bottom);