Skip to content

Commit

Permalink
Fix #314 (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekerZhayard authored Nov 8, 2024
1 parent 5d3326c commit 571d611
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Forge/V1/src/main/resources/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down
12 changes: 12 additions & 0 deletions Forge/V2/src/main/resources/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name=CustomSkinLoader
group=customskinloader
version=14.21
version=14.21.1

0 comments on commit 571d611

Please sign in to comment.