Skip to content

Fall back to default resourcepack icon if missing pack.png #78

Description

@saadndm

The OSL resource loader should fall back to MC's default resource pack icon instead of TextureUtil.MISSING_TEXTURE in ResourcePackSummaryEntry.java.

Rn a pack without pack.png gets the missing texture:

        try (InputStream is = summary.open().getResource(ResourcePack.ICON_FILE)) {
            icon = new DynamicTexture(TextureUtil.readImage(is));
        } catch (Throwable t) {
            icon = TextureUtil.MISSING_TEXTURE;
        }

In vanilla, if pack.png is missing, it falls back to the default resource pack icon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions