Small fix

This commit is contained in:
paulevsGitch 2021-08-01 14:12:30 +03:00
parent b05f5a728f
commit d497f97663

View file

@ -52,6 +52,11 @@ public class SimpleReloadableResourceManagerMixin {
ResourceManager resourceManager = this.namespacedPacks.get(resourceLocation.getNamespace()); ResourceManager resourceManager = this.namespacedPacks.get(resourceLocation.getNamespace());
if (resourceManager != null) { if (resourceManager != null) {
Resource resource = resourceManager.getResource(resourceLocation);
if (resource != null) {
info.setReturnValue(resource);
return;
}
resourceLocation = BCLib.makeID("materialmaps/block/alpha_emission.json"); resourceLocation = BCLib.makeID("materialmaps/block/alpha_emission.json");
info.setReturnValue(resourceManager.getResource(resourceLocation)); info.setReturnValue(resourceManager.getResource(resourceLocation));
} }