Fixed villagers not having distinct skins

This commit is contained in:
Sollace 2023-02-16 19:49:42 +00:00
parent efe58a1c99
commit 1fa850708d

View file

@ -21,7 +21,9 @@ public final class ResourceUtil {
}
public static boolean textureExists(Identifier texture) {
return MinecraftClient.getInstance().getTextureManager().getOrDefault(texture, null) != null;
return
MinecraftClient.getInstance().getTextureManager().getOrDefault(texture, null) != null
|| MinecraftClient.getInstance().getResourceManager().getResource(texture).isPresent();
}
public static Optional<Identifier> verifyTexture(Identifier texture) {