Fix IllegalAccessError. (#317)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2024-11-12 21:36:24 +08:00
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();
}