Fix up some stuff with resource packs, so the guilist works properly.

This commit is contained in:
cpw committed 2019-01-05 10:19:47 -05:00
1 parent 1d1ec57909
commit 58c78560fa
5 files changed
+35 -59

No files matched your search

@@ -433,8 +433,8 @@ public class GuiModList extends GuiScreen
Pair<ResourceLocation, Dimension> logoData = selectedMod.getLogoFile().map(logoFile->
{
TextureManager tm = mc.getTextureManager();
ResourcePackInfoClient pack = ResourcePackLoader.getResourcePackInfo(selectedMod.getModId());
if (pack == null) pack = ResourcePackLoader.getResourcePackInfo("forge");
ResourcePackInfoClient pack = ResourcePackLoader.getResourcePackInfoForModId(selectedMod.getModId());
if (pack == null) pack = ResourcePackLoader.getResourcePackInfoForModId("forge");
try
{
NativeImage logo = null;