mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Fixed skins appearing slim when they're actually not
This commit is contained in:
parent
652e3247a3
commit
0bf3c8d216
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ public class VanillaModels {
|
||||||
public static final String DEFAULT = "default";
|
public static final String DEFAULT = "default";
|
||||||
|
|
||||||
public static String of(String model) {
|
public static String of(String model) {
|
||||||
return model != null && model.contains(SLIM) ? SLIM : DEFAULT;
|
return model == null ? DEFAULT : model;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String nonNull(String model) {
|
public static String nonNull(String model) {
|
||||||
|
@ -17,6 +17,6 @@ public class VanillaModels {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isFat(String model) {
|
public static boolean isFat(String model) {
|
||||||
return DEFAULT.equals(model);
|
return model == null || DEFAULT.equals(model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class PreviewTexture extends ThreadDownloadImageData {
|
||||||
public PreviewTexture(@Nullable String model, String url, ResourceLocation fallbackTexture, @Nullable IImageBuffer imageBuffer) {
|
public PreviewTexture(@Nullable String model, String url, ResourceLocation fallbackTexture, @Nullable IImageBuffer imageBuffer) {
|
||||||
super(null, url, fallbackTexture, imageBuffer);
|
super(null, url, fallbackTexture, imageBuffer);
|
||||||
|
|
||||||
this.model = VanillaModels.nonNull(model);
|
this.model = VanillaModels.of(model);
|
||||||
this.fileUrl = url;
|
this.fileUrl = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue