mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 07:27:59 +01:00
Fixed villagers not having distinct skins
This commit is contained in:
parent
efe58a1c99
commit
1fa850708d
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ public final class ResourceUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean textureExists(Identifier texture) {
|
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) {
|
public static Optional<Identifier> verifyTexture(Identifier texture) {
|
||||||
|
|
Loading…
Reference in a new issue