From ae3570b1bd7971741f97e8211c876b86aeb6d154 Mon Sep 17 00:00:00 2001 From: FirstMegaGame4 <84094287+FirstMegaGame4@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:55:24 +0100 Subject: [PATCH] Fix NamespaceResourceManagerMixin --- .../env/json/mixin/NamespaceResourceManagerMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/firstmegagame4/env/json/mixin/NamespaceResourceManagerMixin.java b/src/main/java/fr/firstmegagame4/env/json/mixin/NamespaceResourceManagerMixin.java index 23ee11f..d464ebf 100644 --- a/src/main/java/fr/firstmegagame4/env/json/mixin/NamespaceResourceManagerMixin.java +++ b/src/main/java/fr/firstmegagame4/env/json/mixin/NamespaceResourceManagerMixin.java @@ -161,7 +161,7 @@ private ResourcePack.ResultConsumer mutateBiConsumer(ResourcePack.ResultConsumer if (EnvJsonUtils.isEnvJson(identifier)) { Identifier envJsonIdentifier = EnvJsonUtils.getEnvJsonFileName(identifier); if (allowedPathPredicate.test(envJsonIdentifier)) { - ((EntryListDuckInterface) (Object) idToEntryList.computeIfAbsent(identifier, NamespaceResourceManager.EntryList::new)) + ((EntryListDuckInterface) (Object) idToEntryList.computeIfAbsent(envJsonIdentifier, NamespaceResourceManager.EntryList::new)) .env_json$putEnvJsonSource(resourcePack, supplier); } }