mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-26 02:12:57 +00:00
Refix texture parsing bug
This commit is contained in:
1 parent
8257d6dfd0
commit
5d366d1d8c
2 files changed
+15
-3
No files matched your search
@@ -22,8 +22,19 @@ public class SkinBuffer implements net.minecraft.client.renderer.IImageBuffer {
|
||||
graphics.fillRect(0,0,64,64);
|
||||
graphics.drawImage(image,0,0,(ImageObserver)null);
|
||||
if (image.getHeight() == 32 * ratio){//Single Layer
|
||||
graphics.drawImage(bufferedimage,32 * ratio,48 * ratio,16 * ratio,64 * ratio, 0 * ratio,16 * ratio,16 * ratio,32 * ratio,(ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage,48 * ratio,48 * ratio,32 * ratio,64 * ratio,40 * ratio,16 * ratio,56 * ratio,32 * ratio,(ImageObserver)null);
|
||||
//Revert to original algorithm
|
||||
graphics.drawImage(bufferedimage, 24 * ratio, 48 * ratio, 20 * ratio, 52 * ratio, 4 * ratio, 16 * ratio, 8 * ratio, 20 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 28 * ratio, 48 * ratio, 24 * ratio, 52 * ratio, 8 * ratio, 16 * ratio, 12 * ratio, 20 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 20 * ratio, 52 * ratio, 16 * ratio, 64 * ratio, 8 * ratio, 20 * ratio, 12 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 24 * ratio, 52 * ratio, 20 * ratio, 64 * ratio, 4 * ratio, 20 * ratio, 8 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 28 * ratio, 52 * ratio, 24 * ratio, 64 * ratio, 0 * ratio, 20 * ratio, 4 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 32 * ratio, 52 * ratio, 28 * ratio, 64 * ratio, 12 * ratio, 20 * ratio, 16 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 40 * ratio, 48 * ratio, 36 * ratio, 52 * ratio, 44 * ratio, 16 * ratio, 48 * ratio, 20 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 44 * ratio, 48 * ratio, 40 * ratio, 52 * ratio, 48 * ratio, 16 * ratio, 52 * ratio, 20 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 36 * ratio, 52 * ratio, 32 * ratio, 64 * ratio, 48 * ratio, 20 * ratio, 52 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 40 * ratio, 52 * ratio, 36 * ratio, 64 * ratio, 44 * ratio, 20 * ratio, 48 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 44 * ratio, 52 * ratio, 40 * ratio, 64 * ratio, 40 * ratio, 20 * ratio, 44 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
graphics.drawImage(bufferedimage, 48 * ratio, 52 * ratio, 44 * ratio, 64 * ratio, 52 * ratio, 20 * ratio, 56 * ratio, 32 * ratio, (ImageObserver)null);
|
||||
}
|
||||
graphics.dispose();
|
||||
this.imageData = ((DataBufferInt)bufferedimage.getRaster().getDataBuffer()).getData();
|
||||
@@ -91,6 +102,7 @@ public class SkinBuffer implements net.minecraft.client.renderer.IImageBuffer {
|
||||
|
||||
@Override
|
||||
public void skinAvailable(){
|
||||
//A callback when skin loaded
|
||||
}
|
||||
|
||||
private static int getARGB(int a,int r,int g,int b){
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
name=CustomSkinLoader
|
||||
group=customskinloader
|
||||
version=14.4
|
||||
version=14.5
|
||||
dev_version=
|
||||
#RELEASE: snapshot=0
|
||||
snapshot=1
|
||||
Reference in new issue
Block a user