aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-07 15:25:44 +0900
committersyeyoung <cyoung06@naver.com>2023-02-07 15:25:44 +0900
commit399f681abc0bc738e01d659f2a6ae73e5fc64f71 (patch)
tree095f5a63c2a1fcfe47a3305f875c322182f884d4 /mod/src/main/java/kr/syeyoung/dungeonsguide
parentd566771b9fdba45c56b272b28e5fc0dbf2508958 (diff)
downloadSkyblock-Dungeons-Guide-399f681abc0bc738e01d659f2a6ae73e5fc64f71.tar.gz
Skyblock-Dungeons-Guide-399f681abc0bc738e01d659f2a6ae73e5fc64f71.tar.bz2
Skyblock-Dungeons-Guide-399f681abc0bc738e01d659f2a6ae73e5fc64f71.zip
- loading and unloading
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java
index f3622b22..303caea8 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java
@@ -381,6 +381,14 @@ public class DungeonsGuide implements DGInterface {
ReflectionHelper.setPrivateValue(ThreadDownloadImageData.class,(ThreadDownloadImageData) value, null, "imageBuffer", "field_110563_c", "k");
}
}
+ Set<ResourceLocation> toRemove = new HashSet<>();
+ for (Map.Entry<ResourceLocation, ITextureObject> resourceLocationITextureObjectEntry : mapTextureObjects.entrySet()) {
+ if (resourceLocationITextureObjectEntry.getKey().getResourceDomain().equalsIgnoreCase("dungeonsguide"))
+ toRemove.add(resourceLocationITextureObjectEntry.getKey());
+ }
+ for (ResourceLocation resourceLocation : toRemove) {
+ ITextureObject textureObject = mapTextureObjects.remove(resourceLocation);
+ }