Fixed skins appearing slim when they're actually not

This commit is contained in:
Sollace 2022-11-25 20:24:58 +00:00
parent 652e3247a3
commit 0bf3c8d216
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ public class VanillaModels {
public static final String DEFAULT = "default";
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) {
@ -17,6 +17,6 @@ public class VanillaModels {
}
public static boolean isFat(String model) {
return DEFAULT.equals(model);
return model == null || DEFAULT.equals(model);
}
}

View file

@ -23,7 +23,7 @@ public class PreviewTexture extends ThreadDownloadImageData {
public PreviewTexture(@Nullable String model, String url, ResourceLocation fallbackTexture, @Nullable IImageBuffer imageBuffer) {
super(null, url, fallbackTexture, imageBuffer);
this.model = VanillaModels.nonNull(model);
this.model = VanillaModels.of(model);
this.fileUrl = url;
}