From 0cba03b165fc66cf2c56e1a5669024f2976d2f9c Mon Sep 17 00:00:00 2001 From: GodOfPro <59516901+GodOfProDev@users.noreply.github.com> Date: Sun, 25 Dec 2022 14:18:51 +0330 Subject: Fix total kills, deaths not being reset on profile switch (#512) Override the reset cache --- .../github/moulberry/notenoughupdates/profileviewer/ExtraPage.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java index 4c58e57a..a1b15b82 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java @@ -590,4 +590,10 @@ public class ExtraPage extends GuiProfileViewerPage { } return null; } + + @Override + public void resetCache() { + topDeaths = null; + topKills = null; + } } -- cgit