From c3278b495ebace05c45ef8056848a5f6690afc9b Mon Sep 17 00:00:00 2001 From: isXander Date: Wed, 24 Apr 2024 23:06:15 +0100 Subject: Fix conflict with crowdin translate --- .../java/dev/isxander/yacl3/gui/image/YACLImageReloadListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/dev/isxander/yacl3/gui/image/YACLImageReloadListener.java b/src/main/java/dev/isxander/yacl3/gui/image/YACLImageReloadListener.java index 1852d98..243f22f 100644 --- a/src/main/java/dev/isxander/yacl3/gui/image/YACLImageReloadListener.java +++ b/src/main/java/dev/isxander/yacl3/gui/image/YACLImageReloadListener.java @@ -10,6 +10,7 @@ import net.minecraft.server.packs.resources.PreparableReloadListener; import net.minecraft.server.packs.resources.Resource; import net.minecraft.server.packs.resources.ResourceManager; import net.minecraft.util.profiling.ProfilerFiller; +import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.List; @@ -25,7 +26,7 @@ public class YACLImageReloadListener /*?}*/ { @Override - public CompletableFuture reload( + public @NotNull CompletableFuture reload( PreparationBarrier preparationBarrier, ResourceManager resourceManager, ProfilerFiller preparationsProfiler, @@ -34,7 +35,7 @@ public class YACLImageReloadListener Executor gameExecutor ) { Map imageResources = resourceManager.listResources( - "", + "textures", location -> ImageRendererManager.PRELOADED_IMAGE_FACTORIES .stream() .anyMatch(factory -> factory.predicate().test(location)) -- cgit