aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2024-04-24 23:06:15 +0100
committerisXander <xander@isxander.dev>2024-04-24 23:06:15 +0100
commitc3278b495ebace05c45ef8056848a5f6690afc9b (patch)
treee3e7f29fc0c9504d56356e4b399623dbf9cb832c /src/main/java/dev/isxander
parent525a145e80475892c2cd34d882f636360971224c (diff)
downloadYetAnotherConfigLib-c3278b495ebace05c45ef8056848a5f6690afc9b.tar.gz
YetAnotherConfigLib-c3278b495ebace05c45ef8056848a5f6690afc9b.tar.bz2
YetAnotherConfigLib-c3278b495ebace05c45ef8056848a5f6690afc9b.zip
Fix conflict with crowdin translate
Diffstat (limited to 'src/main/java/dev/isxander')
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/image/YACLImageReloadListener.java5
1 files changed, 3 insertions, 2 deletions
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<Void> reload(
+ public @NotNull CompletableFuture<Void> reload(
PreparationBarrier preparationBarrier,
ResourceManager resourceManager,
ProfilerFiller preparationsProfiler,
@@ -34,7 +35,7 @@ public class YACLImageReloadListener
Executor gameExecutor
) {
Map<ResourceLocation, Resource> imageResources = resourceManager.listResources(
- "",
+ "textures",
location -> ImageRendererManager.PRELOADED_IMAGE_FACTORIES
.stream()
.anyMatch(factory -> factory.predicate().test(location))