Remove log message about missing vilager textures

This commit is contained in:
Sollace 2022-12-11 01:07:59 +00:00
parent 3fb9b46013
commit e37ea9e12c

View file

@ -9,7 +9,6 @@ import net.minecraft.village.VillagerDataContainer;
import net.minecraft.village.VillagerProfession; import net.minecraft.village.VillagerProfession;
import net.minecraft.village.VillagerType; import net.minecraft.village.VillagerType;
import com.minelittlepony.client.MineLittlePony;
import com.minelittlepony.util.ResourceUtil; import com.minelittlepony.util.ResourceUtil;
import java.util.HashMap; import java.util.HashMap;
@ -82,12 +81,7 @@ public class PonyTextures<T extends LivingEntity & VillagerDataContainer> implem
} }
protected Optional<Identifier> verifyTexture(Identifier texture) { protected Optional<Identifier> verifyTexture(Identifier texture) {
if (resourceManager.getResource(texture).isEmpty()) { return resourceManager.getResource(texture).map(i -> texture);
MineLittlePony.logger.warn("Villager texture `" + texture + "` was not found.");
return Optional.empty();
}
return Optional.of(texture);
} }
public static boolean isBestPony(LivingEntity entity) { public static boolean isBestPony(LivingEntity entity) {