mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-22 11:59:45 +00:00
Fix IllegalAccessError. (#317)
This commit is contained in:
1 parent
aa68af31e5
commit
8e63429293
8 files changed
+28
-3
No files matched your search
@@ -27,6 +27,10 @@ public class FakeInterfaceManager {
|
||||
return ((IFakeNativeImage) nativeImage).getPixel(x, y);
|
||||
}
|
||||
|
||||
public static void NativeImage_setPixel(Object nativeImage, int x, int y, int color) {
|
||||
((IFakeNativeImage) nativeImage).setPixel(x, y, color);
|
||||
}
|
||||
|
||||
public static GameProfile SkinManagerCacheKey_profile(Object skinManagerCacheKey) {
|
||||
return ((IFakeSkinManagerCacheKey) skinManagerCacheKey).profile();
|
||||
}
|
||||
|
||||
@@ -6,4 +6,8 @@ public interface IFakeNativeImage {
|
||||
default int getPixel(int x, int y) {
|
||||
return ((NativeImage) this).func_195709_a(x, y);
|
||||
}
|
||||
|
||||
default void setPixel(int x, int y, int color) {
|
||||
((NativeImage) this).func_195700_a(x, y, color);
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ public class FakeNativeImage implements FakeImage {
|
||||
}
|
||||
|
||||
public void setRGBA(int x, int y, int rgba) {
|
||||
image.func_195700_a(x, y, rgba);
|
||||
FakeInterfaceManager.NativeImage_setPixel(image, x, y, rgba);
|
||||
}
|
||||
|
||||
public void copyImageData(FakeImage image) {
|
||||
|
||||
Reference in new issue
Block a user