mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-01 16:27:59 +01:00
Fix wing textures
This commit is contained in:
parent
5976606846
commit
e18fd90c22
1 changed files with 13 additions and 1 deletions
|
@ -11,7 +11,19 @@ public class PonySkinModifier implements ISkinModifier {
|
||||||
@Override
|
@Override
|
||||||
public void convertSkin(BufferedImage skin, Graphics dest) {
|
public void convertSkin(BufferedImage skin, Graphics dest) {
|
||||||
int scale = skin.getWidth() / 64;
|
int scale = skin.getWidth() / 64;
|
||||||
drawImage(dest, skin, scale, 64, 32, 56, 48, 56, 16, 64, 32);
|
|
||||||
|
//top, mirror
|
||||||
|
drawImage(dest, skin, scale, 60, 34, 58, 32, 58, 18, 60, 16);
|
||||||
|
//bottom, mirror
|
||||||
|
drawImage(dest, skin, scale, 62, 34, 60, 32, 60, 18, 62, 16);
|
||||||
|
//inside
|
||||||
|
drawImage(dest, skin, scale, 56, 34, 58, 48, 60, 18, 62, 32);
|
||||||
|
//front, mirror
|
||||||
|
drawImage(dest, skin, scale, 60, 48, 58, 34, 58, 32, 60, 18);
|
||||||
|
//outside
|
||||||
|
drawImage(dest, skin, scale, 60, 34, 62, 48, 56, 18, 58, 32);
|
||||||
|
//back
|
||||||
|
drawImage(dest, skin, scale, 62, 34, 64, 48, 62, 18, 64, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void drawImage(Graphics graphics, Image image, int scale, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) {
|
private void drawImage(Graphics graphics, Image image, int scale, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2) {
|
||||||
|
|
Loading…
Reference in a new issue