From 571d61118d41e6f15ee5a4bce230dca8a12a1c78 Mon Sep 17 00:00:00 2001 From: ZekerZhayard Date: Fri, 8 Nov 2024 08:33:39 +0800 Subject: [PATCH] Fix #314 (#315) --- Forge/V1/src/main/resources/transformers.js | 12 ++++++++++++ Forge/V2/src/main/resources/transformers.js | 12 ++++++++++++ build.properties | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Forge/V1/src/main/resources/transformers.js b/Forge/V1/src/main/resources/transformers.js index a2c1edc..6dd3262 100644 --- a/Forge/V1/src/main/resources/transformers.js +++ b/Forge/V1/src/main/resources/transformers.js @@ -184,6 +184,18 @@ function initializeCoreMod() { return cn; } }, + 'NativeImageTransformer': { + 'target': { + 'type': 'CLASS', + 'name': 'net/minecraft/client/renderer/texture/NativeImage' + }, + 'transformer': function (cn) { + if (!cn.interfaces.contains("customskinloader/fake/itf/IFakeNativeImage")) { + cn.interfaces.add("customskinloader/fake/itf/IFakeNativeImage"); + } + return cn; + } + }, // For 1.14+ 'MinecraftTransformer': { diff --git a/Forge/V2/src/main/resources/transformers.js b/Forge/V2/src/main/resources/transformers.js index 9ac12dd..03e052f 100644 --- a/Forge/V2/src/main/resources/transformers.js +++ b/Forge/V2/src/main/resources/transformers.js @@ -227,6 +227,18 @@ function initializeCoreMod() { return cn; } }, + 'NativeImageTransformer': { + 'target': { + 'type': 'CLASS', + 'name': 'com/mojang/blaze3d/platform/NativeImage' + }, + 'transformer': function (cn) { + if (!cn.interfaces.contains("customskinloader/fake/itf/IFakeNativeImage")) { + cn.interfaces.add("customskinloader/fake/itf/IFakeNativeImage"); + } + return cn; + } + }, 'PlayerTabOverlayTransformer': { 'target': { 'type': 'CLASS', diff --git a/build.properties b/build.properties index 2f1b1be..3e3d0c1 100644 --- a/build.properties +++ b/build.properties @@ -1,3 +1,3 @@ name=CustomSkinLoader group=customskinloader -version=14.21 +version=14.21.1