diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-07 15:25:44 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-07 15:25:44 +0900 |
commit | 399f681abc0bc738e01d659f2a6ae73e5fc64f71 (patch) | |
tree | 095f5a63c2a1fcfe47a3305f875c322182f884d4 /mod/src/main/java/kr/syeyoung/dungeonsguide | |
parent | d566771b9fdba45c56b272b28e5fc0dbf2508958 (diff) | |
download | Skyblock-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-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/DungeonsGuide.java | 8 |
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); + } |