mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Remove log message about missing vilager textures
This commit is contained in:
parent
3fb9b46013
commit
e37ea9e12c
1 changed files with 1 additions and 7 deletions
|
@ -9,7 +9,6 @@ import net.minecraft.village.VillagerDataContainer;
|
|||
import net.minecraft.village.VillagerProfession;
|
||||
import net.minecraft.village.VillagerType;
|
||||
|
||||
import com.minelittlepony.client.MineLittlePony;
|
||||
import com.minelittlepony.util.ResourceUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
@ -82,12 +81,7 @@ public class PonyTextures<T extends LivingEntity & VillagerDataContainer> implem
|
|||
}
|
||||
|
||||
protected Optional<Identifier> verifyTexture(Identifier texture) {
|
||||
if (resourceManager.getResource(texture).isEmpty()) {
|
||||
MineLittlePony.logger.warn("Villager texture `" + texture + "` was not found.");
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
return Optional.of(texture);
|
||||
return resourceManager.getResource(texture).map(i -> texture);
|
||||
}
|
||||
|
||||
public static boolean isBestPony(LivingEntity entity) {
|
||||
|
|
Loading…
Reference in a new issue