This should allow for unemployed villagers to use biome specific skins.

Allows biome specific skins for unemployed villagers.
This commit is contained in:
AtomicGlow 2022-03-23 06:25:12 -04:00
parent 14c34a4f22
commit af802e8e69
2 changed files with 1 additions and 3 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@ logs/
*.iml *.iml
classes/ classes/
out/ out/
.vscode/launch.json

View file

@ -59,9 +59,6 @@ public class PonyTextures<T extends LivingEntity & VillagerDataContainer> implem
private Identifier getTexture(final VillagerType type, final VillagerProfession profession) { private Identifier getTexture(final VillagerType type, final VillagerProfession profession) {
if (profession == VillagerProfession.NONE) {
return fallback;
}
String key = ResourceUtil.format("pony/%s/%s", type, profession); String key = ResourceUtil.format("pony/%s/%s", type, profession);