Skip to content

Commit

Permalink
Fixed custom Serval Azure skin caring about casing. Closes #386
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Apr 20, 2022
1 parent 4dffd98 commit 3faab18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
minecraft_version=1.16.5
forge_version=36.2.19
mappings=20201028-1.16.3
mod_version=2.2.10
mod_version=2.2.11
jei_version=7.6.4.90
hwyla_version=1.10.11-B78_1.16.2
ct_version=7.1.0.281
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ public ServalRenderer(EntityRendererManager renderManager) {
@Override
@Nonnull
public ResourceLocation getEntityTexture(ServalEntity entity) {
if (entity.hasCustomName() && entity.getCustomName().getString().equals("azure")) {
return AZURE;
} else {
return entity.getCatTypeName();
if (entity.hasCustomName() && entity.getCustomName() != null) {
String customName = entity.getCustomName().getString();
if (customName.equalsIgnoreCase("azure") || customName.equalsIgnoreCase("azu") || customName.equalsIgnoreCase("azuriuz")) {
return AZURE;
}
}
return entity.getCatTypeName();
}

@Override
Expand Down

0 comments on commit 3faab18

Please sign in to comment.